From ca764244a0b0ddd74a6034ef38667cf4aed92ce6 Mon Sep 17 00:00:00 2001 From: ninadsp Date: Tue, 29 Jun 2010 00:17:46 +0530 Subject: [PATCH] Added localization strings for the jQueryUI dialog buttons. --- js/db_operations.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 {