[ticket/15432] Don't remove dark background if fadedark is false

PHPBB3-15432
This commit is contained in:
kasimi 2017-10-31 17:36:29 +01:00
parent 2c01fe67e9
commit 8df79ba5a4
No known key found for this signature in database
GPG key ID: 3163AB573241193A

View file

@ -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) {