From 01811bc23115df937ccd6cc5096c61ee96cecd4d Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Thu, 2 Aug 2012 10:59:57 +0200 Subject: [PATCH] Autosubmit forms with jQuery, avoids a full page reload --- js/functions.js | 2 +- libraries/Theme_Manager.class.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index 3b67bbefaf..da530476c3 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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(); }); /** diff --git a/libraries/Theme_Manager.class.php b/libraries/Theme_Manager.class.php index f34052b2a2..581b713214 100644 --- a/libraries/Theme_Manager.class.php +++ b/libraries/Theme_Manager.class.php @@ -353,7 +353,8 @@ class PMA_Theme_Manager $select_box = ''; if ($form) { - $select_box .= '
'; + $select_box .= '