Added localization strings for the jQueryUI dialog buttons.
This commit is contained in:
@@ -22,6 +22,13 @@ $(document).ready(function() {
|
|||||||
var question = 'CREATE DATABASE ... and then DROP DATABASE ' + window.parent.db;
|
var question = 'CREATE DATABASE ... and then DROP DATABASE ' + window.parent.db;
|
||||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||||
|
|
||||||
|
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) {
|
$(this).PMA_confirm(question, $(this).attr('action'), function(url) {
|
||||||
PMA_ajaxShowMessage(PMA_messages['strRenamingDatabases']);
|
PMA_ajaxShowMessage(PMA_messages['strRenamingDatabases']);
|
||||||
|
|
||||||
@@ -33,13 +40,7 @@ $(document).ready(function() {
|
|||||||
$("#topmenucontainer").after(data.sqlquery);
|
$("#topmenucontainer").after(data.sqlquery);
|
||||||
|
|
||||||
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
$("<span>" + PMA_messages['strReloadDatabase'] + "?</span>").dialog({
|
||||||
buttons: {"Yes": function() {
|
buttons: button_options
|
||||||
window.parent.refreshMain();
|
|
||||||
},
|
|
||||||
"No" : function() {
|
|
||||||
$(this).dialog("close").remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}) //end dialog options
|
}) //end dialog options
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user