From e311848262b6e5e095a331818f1da4ba54c22f74 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 25 Jan 2011 13:06:17 -0500 Subject: [PATCH] Conditional Ajax on table create --- js/functions.js | 6 +++--- libraries/display_create_table.lib.php | 2 +- libraries/tbl_properties.inc.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/functions.js b/js/functions.js index 782c725ad..bf10aaa97 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1665,7 +1665,7 @@ $(document).ready(function() { * * @uses PMA_ajaxShowMessage() */ - $("#create_table_form_minimal").live('submit', function(event) { + $("#create_table_form_minimal.ajax").live('submit', function(event) { event.preventDefault(); $form = $(this); @@ -1708,7 +1708,7 @@ $(document).ready(function() { * */ // .live() must be called after a selector, see http://api.jquery.com/live - $("#create_table_form input[name=do_save_data]").live('click', function(event) { + $("#create_table_form.ajax input[name=do_save_data]").live('click', function(event) { event.preventDefault(); /** @@ -1788,7 +1788,7 @@ $(document).ready(function() { * */ // .live() must be called after a selector, see http://api.jquery.com/live - $("#create_table_form input[name=submit_num_fields]").live('click', function(event) { + $("#create_table_form.ajax input[name=submit_num_fields]").live('click', function(event) { event.preventDefault(); /** diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php index 962632c3f..5ec2d9a07 100644 --- a/libraries/display_create_table.lib.php +++ b/libraries/display_create_table.lib.php @@ -36,7 +36,7 @@ require_once './libraries/check_user_privileges.lib.php'; $is_create_table_priv = true; ?> -
+ >
- + >