Conditional Ajax on db Search

Remove extra wrapping of jQuery object
Avoid extra generation of hidden field
Add vim modeline
This commit is contained in:
Marc Delisle
2011-01-27 06:46:17 -05:00
parent b8b77503d2
commit 6b51fd57ad
2 changed files with 11 additions and 5 deletions

View File

@@ -290,7 +290,7 @@ else {
*/
?>
<a name="db_search"></a>
<form id="db_search_form" method="post" action="db_search.php" name="db_search">
<form id="db_search_form"<?php echo ($GLOBALS['cfg']['AjaxEnable'] ? ' class="ajax"' : ''); ?> method="post" action="db_search.php" name="db_search">
<?php echo PMA_generate_common_hidden_inputs($GLOBALS['db']); ?>
<fieldset>
<legend><?php echo __('Search in database'); ?></legend>