diff options
author | Jo Michael <me@mynetx.net> | 2012-04-21 02:14:02 +0400 |
---|---|---|
committer | Jo Michael <me@mynetx.net> | 2012-04-21 02:14:02 +0400 |
commit | d49c63424ff18a5ae46590aa9161c36d17f3438f (patch) | |
tree | 2013757044a76e334c3096f5c7266192f189cb83 | |
parent | c23fc1efe666acca3d9b2d4abe1f58014cbd6f77 (diff) |
Add loading indicator to server variables editor
-rw-r--r-- | js/server_variables.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/server_variables.js b/js/server_variables.js index 55d2b41357..f81266d003 100644 --- a/js/server_variables.js +++ b/js/server_variables.js @@ -132,12 +132,14 @@ function editVariable(link) var mySaveLink = $(saveLink); var myCancelLink = $(cancelLink); var $cell = $(link).parent(); + var $msgbox = PMA_ajaxShowMessage(); $cell.addClass('edit'); // remove edit link $cell.find('a.editLink').remove(); mySaveLink.click(function() { + var $msgbox = PMA_ajaxShowMessage(PMA_messages.strProcessingRequest); $.get('server_variables.php?' + url_query, { ajax_request: true, type: 'setval', @@ -146,6 +148,7 @@ function editVariable(link) }, function(data) { if (data.success) { $cell.html(data.variable); + PMA_ajaxRemoveMessage($msgbox); } else { PMA_ajaxShowMessage(data.error, false); $cell.html($cell.find('span.oldContent').html()); @@ -184,6 +187,7 @@ function editVariable(link) // Escape key if(event.keyCode == 27) myCancelLink.trigger('click'); }); + PMA_ajaxRemoveMessage($msgbox); }); return false; |