diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 667e3fc561..7184cb2b93 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -45,7 +45,7 @@ phpbb.loading_alert = function() { * @returns object Returns the div created. */ phpbb.alert = function(title, msg, fadedark) { - var div = $('#jalert_alert'); + var div = $('#phpbb_alert'); div.find('h3').html(title); div.find('p').html(msg); @@ -107,15 +107,20 @@ phpbb.alert = function(title, msg, fadedark) { * @returns object Returns the div created. */ phpbb.confirm = function(msg, callback, fadedark) { - var div = $('#jalert_confirm'); + var div = $('#phpbb_confirm'); div.find('p').html(msg); - - div.find('.jalertbut').bind('click', function() { - var res = this.value === 'Yes'; + + div.bind('click', function(e) { + e.stopPropagation(); + return true; + }); + div.find('input[type="button"]').one('click', function() { + var res = this.className === 'button1'; var fade = (typeof fadedark !== 'undefined' && !fadedark && res) ? div : dark; fade.fadeOut(100, function() { div.hide(); }); + div.find('input[type="button"]').unbind('click'); callback(res); return false; }); @@ -131,10 +136,10 @@ phpbb.confirm = function(msg, callback, fadedark) { $(document).bind('keydown', function(e) { if (e.keyCode === 13) { - $('.jalertbut.button1').trigger('click'); + $('input[type="button"].button1').trigger('click'); return false; } else if (e.keyCode === 27) { - $('.jalertbut.button2').trigger('click'); + $('input[type="button"].button2').trigger('click'); return false; } return true; diff --git a/phpBB/styles/prosilver/template/overall_footer.html b/phpBB/styles/prosilver/template/overall_footer.html index b7697afbb4..981740510d 100644 --- a/phpBB/styles/prosilver/template/overall_footer.html +++ b/phpBB/styles/prosilver/template/overall_footer.html @@ -30,15 +30,15 @@

{L_LOADING}

{L_PLEASE_WAIT}

-
+

-
+

-   - +   +
diff --git a/phpBB/styles/prosilver/theme/common.css b/phpBB/styles/prosilver/theme/common.css index 0190ec7e85..d1fc1fa3e3 100644 --- a/phpBB/styles/prosilver/theme/common.css +++ b/phpBB/styles/prosilver/theme/common.css @@ -590,7 +590,7 @@ li.pagination { /* jQuery popups ---------------------------------------- */ -.jalert { +.phpbb_alert { background-color: #FFFFFF; border: 1px solid #999999; position: fixed; @@ -603,13 +603,13 @@ li.pagination { padding: 0 25px 20px 25px; } -.jalert img.alert_close { +.phpbb_alert img.alert_close { float: right; margin-top: -7px; margin-right: -30px; } -.jalert p { +.phpbb_alert p { margin: 8px 0; padding-bottom: 8px; }