to avoid undefined attribute errors, give different ids to the create table form and add fields form; then use the .live() method directly after a selector as recommended

This commit is contained in:
Marc Delisle
2010-09-26 07:22:58 -04:00
parent 8cf1e880f5
commit 14c02c1e67
2 changed files with 79 additions and 63 deletions

View File

@@ -610,7 +610,7 @@ document.onkeydown = onKeyDownArrowsHandler;
}
?>
<form id="create_table_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 PMA_generate_common_hidden_inputs($_form_params);
unset($_form_params);