Conditional Ajax on table create
This commit is contained in:
@@ -1665,7 +1665,7 @@ $(document).ready(function() {
|
|||||||
*
|
*
|
||||||
* @uses PMA_ajaxShowMessage()
|
* @uses PMA_ajaxShowMessage()
|
||||||
*/
|
*/
|
||||||
$("#create_table_form_minimal").live('submit', function(event) {
|
$("#create_table_form_minimal.ajax").live('submit', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$form = $(this);
|
$form = $(this);
|
||||||
|
|
||||||
@@ -1708,7 +1708,7 @@ $(document).ready(function() {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
// .live() must be called after a selector, see http://api.jquery.com/live
|
// .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();
|
event.preventDefault();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1788,7 +1788,7 @@ $(document).ready(function() {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
// .live() must be called after a selector, see http://api.jquery.com/live
|
// .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();
|
event.preventDefault();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -36,7 +36,7 @@ require_once './libraries/check_user_privileges.lib.php';
|
|||||||
$is_create_table_priv = true;
|
$is_create_table_priv = true;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<form id="create_table_form_minimal" method="post" action="tbl_create.php">
|
<form id="create_table_form_minimal" method="post" action="tbl_create.php"<?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
<?php
|
<?php
|
||||||
|
@@ -606,7 +606,7 @@ document.onkeydown = onKeyDownArrowsHandler;
|
|||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form id="<?php echo ($action == 'tbl_create.php' ? 'create_table' : 'append_fields'); ?>_form" method="post" action="<?php echo $action; ?>">
|
<form id="<?php echo ($action == 'tbl_create.php' ? 'create_table' : 'append_fields'); ?>_form" method="post" action="<?php echo $action; ?>" <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?>>
|
||||||
<?php
|
<?php
|
||||||
echo PMA_generate_common_hidden_inputs($_form_params);
|
echo PMA_generate_common_hidden_inputs($_form_params);
|
||||||
unset($_form_params);
|
unset($_form_params);
|
||||||
|
Reference in New Issue
Block a user