From 3a68fb3e6c396ddbe496937f3d88125ef66e8d04 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Fri, 17 May 2013 11:03:19 +0530 Subject: [PATCH] Fix bug#3936 in master --- js/functions.js | 6 +++--- libraries/sql.lib.php | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/js/functions.js b/js/functions.js index 184e3cceb9..de254e6717 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3553,7 +3553,7 @@ function PMA_getCellValue(td) { */ AJAX.registerTeardown('functions.js', function () { $('a.themeselect').die('click'); - $('.autosubmit').unbind('change'); + $('.autosubmit').die('change'); $('a.take_theme').unbind('click'); }); @@ -3573,7 +3573,7 @@ AJAX.registerOnload('functions.js', function () { /** * Automatic form submission on change. */ - $('.autosubmit').change(function (e) { + $('.autosubmit').live('change', function (e) { $(this).closest('form').submit(); }); @@ -3880,4 +3880,4 @@ $('a.login-link').live('click', function (e) { $(function () { $(window).resize(DynamicBoxes); }); -})(); \ No newline at end of file +})(); diff --git a/libraries/sql.lib.php b/libraries/sql.lib.php index 8353eb7527..b7b42385f7 100644 --- a/libraries/sql.lib.php +++ b/libraries/sql.lib.php @@ -527,6 +527,11 @@ function PMA_getHtmlForProfilingChart($url_query, $pma_token, $profiling_results $profiling_table .= ''; $profiling_table .= ''; + $profiling_table .= ''; $profiling_table .= '' . "\n"; return $profiling_table;