From 5b900ead54f457e75398ba22910b58663e922aac Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 27 Jan 2011 13:08:33 -0500 Subject: [PATCH] Conditional Ajax on table Structure --- js/tbl_structure.js | 3 +++ libraries/Index.class.php | 6 +++++- tbl_structure.php | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 40397c1d65..6a7c773c77 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -24,6 +24,7 @@ $(document).ready(function() { * * @uses $.PMA_confirm() * @uses PMA_ajaxShowMessage() + * (see $GLOBALS['cfg']['AjaxEnable']) */ $(".drop_column_anchor").live('click', function(event) { event.preventDefault(); @@ -66,6 +67,7 @@ $(document).ready(function() { * * @uses $.PMA_confirm() * @uses PMA_ajaxShowMessage() + * (see $GLOBALS['cfg']['AjaxEnable']) */ $(".action_primary a").live('click', function(event) { event.preventDefault(); @@ -107,6 +109,7 @@ $(document).ready(function() { * * @uses $.PMA_confirm() * @uses PMA_ajaxShowMessage() + * (see $GLOBALS['cfg']['AjaxEnable']) */ $('.drop_primary_key_index_anchor').live('click', function(event) { event.preventDefault(); diff --git a/libraries/Index.class.php b/libraries/Index.class.php index 285f578b06..53ea62db4b 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -477,7 +477,11 @@ class PMA_Index } $r .= '' - . ' ' . PMA_getIcon('b_drop.png', __('Drop')) . '' . '' . "\n"; diff --git a/tbl_structure.php b/tbl_structure.php index 17c2e73d02..66cfb538d0 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -394,7 +394,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { - + href="sql.php?&sql_query=&dropped_column=&message_to_show=" > @@ -476,7 +476,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { -
+
> -- 2.11.4.GIT