1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

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

PHPBB3-15332
This commit is contained in:
kasimi 2017-08-21 15:30:07 +02:00
parent 1e605efaf1
commit d3305ad13e
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 || true;
fadedark = fadedark !== 'undefined' ? fadedark : true;
$(document).on('keydown.phpbb.alert', function(e) {
if (e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) {