Autosubmit forms with jQuery, avoids a full page reload

This commit is contained in:
Rouslan Placella 2012-08-02 10:59:57 +02:00
parent 7db4583f24
commit 01811bc231
2 changed files with 3 additions and 2 deletions

View File

@ -3491,7 +3491,7 @@ AJAX.registerOnload('functions.js', function() {
* Automatic form submission on change.
*/
$('.autosubmit').change(function(e) {
e.target.form.submit();
$(this).closest('form').submit();
});
/**

View File

@ -353,7 +353,8 @@ class PMA_Theme_Manager
$select_box = '';
if ($form) {
$select_box .= '<form name="setTheme" method="post" action="index.php">';
$select_box .= '<form name="setTheme" method="post"';
$select_box .= ' action="index.php" class="disableAjax">';
$select_box .= PMA_generate_common_hidden_inputs();
}