Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2011-10-30 18:32:29 +0400
committerRouslan Placella <rouslan@placella.com>2011-10-30 18:32:29 +0400
commitc52063d283fe2e58a397f6832b87ae9fceef0ef2 (patch)
treecf824c7ba3cdc0e12aafcd7d35ed531ecf4c8c13 /js/db_search.js
parent14e00c4dcb17872180964f4d8b2094d7bad55306 (diff)
parentf7cb55cb626158d81ac606927142d8f55444b9ff (diff)
Merge branch 'QA_3_4'
Conflicts: js/db_search.js
Diffstat (limited to 'js/db_search.js')
-rw-r--r--js/db_search.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/js/db_search.js b/js/db_search.js
index 79efddb2a9..026d47079c 100644
--- a/js/db_search.js
+++ b/js/db_search.js
@@ -56,18 +56,20 @@ function deleteResult(result_path , msg , ajaxEnable)
{
if(ajaxEnable)
{
+ var $msg = PMA_ajaxShowMessage(PMA_messages['strDeleting']);
/** Load the deleted option to the page*/
- $('#browse-results').load(result_path + " '"+'#result_query' + "'");
- $('#sqlqueryform').load(result_path + " '"+'#sqlqueryform' + "'");
- $('#togglequerybox').html(PMA_messages['strShowQueryBox']);
-
- /** Refresh the search results after the deletion */
- document.getElementById('buttonGo'). click();
- PMA_ajaxShowMessage(PMA_messages['strDeleting']);
- /** Show the results of the deletion option */
- $('#browse-results').show();
- $('#sqlqueryform').hide();
- $('#togglequerybox').show();
+ $('#browse-results').load(result_path + " '"+'#result_query' + "'", function () { // FIXME: no need for two ajax reqests here
+ $('#sqlqueryform').load(result_path + " '"+'#sqlqueryform' + "'", function () { // since they both fetch the same page
+ /** Refresh the search results after the deletion */
+ document.getElementById('buttonGo').click();
+ $('#togglequerybox').html(PMA_messages['strHideQueryBox']);
+ PMA_ajaxRemoveMessage($msg);
+ /** Show the results of the deletion option */
+ $('#browse-results').show();
+ $('#sqlqueryform').show();
+ $('#togglequerybox').show();
+ });
+ });
}
else
{