diff options
author | Chirayu Chiripal <chirayu.chiripal@gmail.com> | 2014-06-26 00:27:21 +0400 |
---|---|---|
committer | Chirayu Chiripal <chirayu.chiripal@gmail.com> | 2014-06-26 00:27:21 +0400 |
commit | b3b6176f16af3578772815ceb5ae5d5ab2c734b7 (patch) | |
tree | 9e34e2c33779a3ed50d019e1c6786a4457eb8542 /js/export.js | |
parent | e1b598ff1e6f68eafc9a57bcc5838d2d8148ca1a (diff) |
make alias export dialog button names translatable
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r-- | js/export.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/export.js b/js/export.js index 96afdd13aa..1dabf31d32 100644 --- a/js/export.js +++ b/js/export.js @@ -280,22 +280,22 @@ function aliasSelectHandler(event) { */ function createAliasModal(event) { event.preventDefault(); + var dlgButtons = {}; + dlgButtons[PMA_messages.strResetAll] = function() { + $(this).find('input[type="text"]').val(''); + }; + dlgButtons[PMA_messages.strReset] = function() { + $(this).find('input[type="text"]:visible').val(''); + }; + dlgButtons[PMA_messages.strSaveAndClose] = function() { + $(this).dialog("close"); + $('#alias_modal').parent().appendTo($('form[name="dump"]')); + }; $('#alias_modal').dialog({ width: Math.min($(window).width() - 100, 700), modal: true, dialogClass: "alias-dialog", - buttons: { - 'Reset All': function() { - $(this).find('input[type="text"]').val(''); - }, - 'Reset': function() { - $(this).find('input[type="text"]:visible').val(''); - }, - 'Save & Close': function() { - $(this).dialog("close"); - $('#alias_modal').parent().appendTo($('form[name="dump"]')); - } - }, + buttons: dlgButtons, create: function() { $(this).css('maxHeight', $(window).height() - 150); $('.alias-dialog .ui-dialog-titlebar-close').remove(); |