From 018d75e1dbd630ce2a6c7dda104a45fe2ac8468c Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Tue, 24 Jul 2012 14:43:23 +0100 Subject: [PATCH] Fixed "More" dropdown on tbl_structure.php --- js/ajax.js | 2 +- js/functions.js | 5 +++++ js/tbl_structure.js | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index a6aca577b2..ad8994cd74 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -145,6 +145,7 @@ var AJAX = { responseHandler: function (data) { if (data.success) { + $table_clone = false; PMA_ajaxRemoveMessage(AJAX.$msgbox); if (data._redirect) { @@ -185,7 +186,6 @@ var AJAX = { } $('body').children().not('#pma_navigation').not('#floating_menubar').not('#page_content').not('#selflink').remove(); - $('#page_content').replaceWith("
" + data.message + "
"); if (data.sql_query) { var $sql = $(data.sql_query); diff --git a/js/functions.js b/js/functions.js index 85040880f3..2a155ebe0a 100644 --- a/js/functions.js +++ b/js/functions.js @@ -4,6 +4,11 @@ * */ +/** + * @var $table_clone reference to the action links on the tbl_structure page + */ +var $table_clone = false; + /** * @var sql_box_locked lock for the sqlbox textarea in the querybox/querywindow */ diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 6e19551e2f..e92f6b0092 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -353,9 +353,6 @@ function reloadFieldForm(message) { * with the word "More". They are displayed in a dropdown * menu when the user hovers over the word "More." */ - -var $table_clone = false; - function moreOptsMenuResize() { var $table = $("table#tablestructure"); @@ -387,7 +384,9 @@ function moreOptsMenuResize() { }; // get window width - var window_width = $(window).width(); + var window_width = $(window).width() + - $('#pma_navigation').width() + - $('#pma_navigation_resizer').width(); // find out maximum action links width var max_width = window_width;