From 8cf1e880f5972e09134fc6dedfb2373ae004bfe6 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 25 Sep 2010 13:57:33 -0400 Subject: [PATCH] bug #3058102 AJAX and adding a column --- js/functions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index bd3a2b88b..292e54406 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2040,8 +2040,12 @@ $(document).ready(function() { * @uses PMA_ajaxShowMessage() * @uses $.PMA_sort_table() * @uses window.parent.refreshNavigation() + * + * The create_table_form whose action is tbl_create.php is the + * one which is ajaxified; in this form the action could be + * tbl_addfield.php but it's not ajaxified yet. */ - $("#create_table_form").find("input[name=submit_num_fields], input[name=do_save_data]").live('click', function(event) { + $("#create_table_form").attr('action').is('tbl_create.php').find("input[name=submit_num_fields], input[name=do_save_data]").live('click', function(event) { event.preventDefault(); /**