aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorkasimi <mail@kasimi.net>2017-10-31 17:36:29 +0100
committerkasimi <mail@kasimi.net>2017-10-31 17:36:29 +0100
commit8df79ba5a44eb96545306f90b49207acb99dbce4 (patch)
treeb18320a341d4399a9194a7ba50fa4514166a9d12 /phpBB/assets/javascript
parent2c01fe67e9313565741f20d207ffb289b1d0b2d3 (diff)
downloadforums-8df79ba5a44eb96545306f90b49207acb99dbce4.tar
forums-8df79ba5a44eb96545306f90b49207acb99dbce4.tar.gz
forums-8df79ba5a44eb96545306f90b49207acb99dbce4.tar.bz2
forums-8df79ba5a44eb96545306f90b49207acb99dbce4.tar.xz
forums-8df79ba5a44eb96545306f90b49207acb99dbce4.zip
[ticket/15432] Don't remove dark background if fadedark is false
PHPBB3-15432
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index a88719f1df..359afb1ec4 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -179,7 +179,7 @@ phpbb.alert.close = function($alert, fadedark) {
phpbb.confirm = function(msg, callback, fadedark) {
var $confirmDiv = $('#phpbb_confirm');
$confirmDiv.find('.alert_text').html(msg);
- fadedark = fadedark !== 'undefined' ? fadedark : true;
+ fadedark = typeof fadedark !== 'undefined' ? fadedark : true;
$(document).on('keydown.phpbb.alert', function(e) {
if (e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) {