diff --git a/js/db_operations.js b/js/db_operations.js
index ab46a050a..a33109210 100644
--- a/js/db_operations.js
+++ b/js/db_operations.js
@@ -22,6 +22,13 @@ $(document).ready(function() {
var question = 'CREATE DATABASE ... and then DROP DATABASE ' + window.parent.db;
$(this).append('');
+ var button_options = {};
+ button_options[PMA_messages['strYes']] = function() {
+ window.parent.refreshMain();
+ window.parent.refreshNavigation();
+ };
+ button_options[PMA_messages['strNo']] = function() { $(this).dialog("close").remove(); }
+
$(this).PMA_confirm(question, $(this).attr('action'), function(url) {
PMA_ajaxShowMessage(PMA_messages['strRenamingDatabases']);
@@ -33,13 +40,7 @@ $(document).ready(function() {
$("#topmenucontainer").after(data.sqlquery);
$("" + PMA_messages['strReloadDatabase'] + "?").dialog({
- buttons: {"Yes": function() {
- window.parent.refreshMain();
- },
- "No" : function() {
- $(this).dialog("close").remove();
- }
- }
+ buttons: button_options
}) //end dialog options
}
else {