Autosubmit forms with jQuery, avoids a full page reload
This commit is contained in:
parent
7db4583f24
commit
01811bc231
@ -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();
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user