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:
authorMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-03-21 23:16:12 +0400
committerMohamed Ashraf <mohamed.ashraf.213@gmail.com>2013-03-21 23:16:12 +0400
commit97deaa054c151b4f30ea7c037f19d7b621f1b8bc (patch)
tree0a72e6a3cdd09bab5c837decf1db025b12917e1d /js/indexes.js
parent678a87954085f2cd6a0193403f4ba5d512ba7008 (diff)
Fixed bug with refreshing the page in add/drop index
Diffstat (limited to 'js/indexes.js')
-rw-r--r--js/indexes.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/indexes.js b/js/indexes.js
index 916e32feed..de94076304 100644
--- a/js/indexes.js
+++ b/js/indexes.js
@@ -160,6 +160,9 @@ AJAX.registerOnload('indexes.js', function() {
.html(data.sql_query)
.prependTo('#page_content');
}
+ PMA_commonActions.refreshMain(false, function() {
+ $("a.ajax[href^=#indexes]").click();
+ });
PMA_reloadNavigation();
} else {
PMA_ajaxShowMessage(PMA_messages['strErrorProcessingRequest'] + " : " + data.error, false);
@@ -195,9 +198,10 @@ AJAX.registerOnload('indexes.js', function() {
}
url += "&ajax_request=true";
indexEditorDialog(url, title, function() {
- var location = document.location.href.split("#")[0];
// refresh the page using ajax
- $('<a href="'+location+'"></a>').click(AJAX.requestHandler).click();
+ PMA_commonActions.refreshMain(false, function() {
+ $("a.ajax[href^=#indexes]").click();
+ });
});
});
});