diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-02 17:21:29 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-07-02 18:34:06 +0300 |
commit | 0d5999e05201d4466110542df3d62eb804f6fda3 (patch) | |
tree | d8273482eab67066375c7cf8751e0f231c225b04 /js/export.js | |
parent | 886574494553f2813b557e5edf5e8e15738ce356 (diff) |
Indicate the success of the template operations
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r-- | js/export.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/export.js b/js/export.js index 5cb524f4df..6088e77c91 100644 --- a/js/export.js +++ b/js/export.js @@ -75,7 +75,7 @@ function createTemplate(name) templateData : JSON.stringify(templateData) }; - var $msgbox = PMA_ajaxShowMessage(); + PMA_ajaxShowMessage(); $.post('tbl_export.php', params, function (response) { if (response.success === true) { $('#templateName').val(''); @@ -85,7 +85,7 @@ function createTemplate(name) $(this).prop('selected', true); } }); - PMA_ajaxRemoveMessage($msgbox); + PMA_ajaxShowMessage(PMA_messages.strTemplateCreated); } else { PMA_ajaxShowMessage(response.error, false); } @@ -110,7 +110,7 @@ function loadTemplate(id) templateId : id, }; - var $msgbox = PMA_ajaxShowMessage(); + PMA_ajaxShowMessage(); $.post('tbl_export.php', params, function (response) { if (response.success === true) { var $form = $('form[name="dump"]'); @@ -129,7 +129,7 @@ function loadTemplate(id) $element.trigger('change'); } }); - PMA_ajaxRemoveMessage($msgbox); + PMA_ajaxShowMessage(PMA_messages.strTemplateLoaded); } else { PMA_ajaxShowMessage(response.error, false); } @@ -157,10 +157,10 @@ function updateTemplate(id) templateData : JSON.stringify(templateData) }; - var $msgbox = PMA_ajaxShowMessage(); + PMA_ajaxShowMessage(); $.post('tbl_export.php', params, function (response) { if (response.success === true) { - PMA_ajaxRemoveMessage($msgbox); + PMA_ajaxShowMessage(PMA_messages.strTemplateUpdated); } else { PMA_ajaxShowMessage(response.error, false); } @@ -185,11 +185,11 @@ function deleteTemplate(id) templateId : id, }; - var $msgbox = PMA_ajaxShowMessage(); + PMA_ajaxShowMessage(); $.post('tbl_export.php', params, function (response) { if (response.success === true) { $('#template option[value="' + id + '"]').remove(); - PMA_ajaxRemoveMessage($msgbox); + PMA_ajaxShowMessage(PMA_messages.strTemplateDeleted); } else { PMA_ajaxShowMessage(response.error, false); } |