From 675677e8c574f47f3baafc93879e9103d46d3d8d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 10 Mar 2011 07:13:44 -0500 Subject: [PATCH 1/3] To save some space in the table creation dialog --- themes/pmahomme/css/theme_right.css.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 21a0bfcc5..1f90e3dda 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -1593,6 +1593,10 @@ code.sql, div.sqlvalidate { width: 98%; } +textarea#partitiondefinition { + height:3em; +} + /* for elements that should be revealed only via js */ .hide { display: none; From 149af3e6872e9f0882aaf6fc51c38aa5657b558e Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Thu, 10 Mar 2011 17:31:04 +0100 Subject: [PATCH 2/3] fix @subpackage in file level docs for pmahomme --- themes/pmahomme/css/theme_left.css.php | 2 +- themes/pmahomme/css/theme_print.css.php | 2 +- themes/pmahomme/css/theme_right.css.php | 2 +- themes/pmahomme/info.inc.php | 2 +- themes/pmahomme/layout.inc.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/pmahomme/css/theme_left.css.php b/themes/pmahomme/css/theme_left.css.php index 512516334..757a3db0b 100644 --- a/themes/pmahomme/css/theme_left.css.php +++ b/themes/pmahomme/css/theme_left.css.php @@ -4,7 +4,7 @@ * navigation css file from theme Original * * @package phpMyAdmin-theme - * @subpackage Original + * @subpackage pmahomme */ // unplanned execution path diff --git a/themes/pmahomme/css/theme_print.css.php b/themes/pmahomme/css/theme_print.css.php index 49a0d2363..35f28a497 100644 --- a/themes/pmahomme/css/theme_print.css.php +++ b/themes/pmahomme/css/theme_print.css.php @@ -4,7 +4,7 @@ * print css file from theme Original * * @package phpMyAdmin-theme - * @subpackage Original + * @subpackage pmahomme */ ?> /* For printview */ diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 1f90e3dda..3e63d058a 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -4,7 +4,7 @@ * main css file from theme Original * * @package phpMyAdmin-theme - * @subpackage Original + * @subpackage pmahomme */ // unplanned execution path diff --git a/themes/pmahomme/info.inc.php b/themes/pmahomme/info.inc.php index d9b4e5646..a39a0fb23 100644 --- a/themes/pmahomme/info.inc.php +++ b/themes/pmahomme/info.inc.php @@ -4,7 +4,7 @@ * Theme information * * @package phpMyAdmin-theme - * @subpackage Original + * @subpackage pmahomme */ /** diff --git a/themes/pmahomme/layout.inc.php b/themes/pmahomme/layout.inc.php index 604982aeb..333825648 100644 --- a/themes/pmahomme/layout.inc.php +++ b/themes/pmahomme/layout.inc.php @@ -5,7 +5,7 @@ * for detailed layout configuration please refer to the css files * * @package phpMyAdmin-theme - * @subpackage Original + * @subpackage pmahomme */ /** From a46a49b747f89cdc926fd7d2fd41237d6d060ee7 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Thu, 10 Mar 2011 18:48:16 +0100 Subject: [PATCH 3/3] make PMA_changeClassForColumn work about 1/4th faster --- js/sql.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/sql.js b/js/sql.js index aa49d8ea1..a7b8e621d 100644 --- a/js/sql.js +++ b/js/sql.js @@ -998,10 +998,14 @@ function PMA_changeClassForColumn($this_th, newclass) { var th_index = $this_th.index(); // .eq() is zero-based th_index--; - var $tr_with_data = $this_th.closest('table').find('tbody tr ').has('td.data'); - $tr_with_data.each(function() { - $(this).find('td.data:eq('+th_index+')').toggleClass(newclass); - }); + var $tds = $this_th.closest('table').find('tbody tr').find('td.data:eq('+th_index+')'); + if ($this_th.data('has_class_'+newclass)) { + $tds.removeClass(newclass); + $this_th.data('has_class_'+newclass, false); + } else { + $tds.addClass(newclass); + $this_th.data('has_class_'+newclass, true); + } } $(document).ready(function() {