From d51d7de78a505c8785d95ccddbb0026a2a10fe46 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Sat, 26 Apr 2014 22:04:03 +0800 Subject: [PATCH] A simple fix for bug #4378 Signed-off-by: Edward Cheng --- js/navigation.js | 6 ++- libraries/RecentFavoriteTable.class.php | 6 +-- themes/pmahomme/css/navigation.css.php | 56 +++++++++++++------------ 3 files changed, 36 insertions(+), 32 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index f1538b0800..e9e9525421 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -888,7 +888,9 @@ var ResizeHandler = function () { $nav_header = $("#pma_navigation_header"), $nav_tree_content = $("#pma_navigation_tree_content"); $nav_tree.height($nav.height() - $nav_header.height()); - $nav_tree_content.height($nav_tree.height() - $nav_tree_content.position().top); + if($nav_tree_content.length>0) { + $nav_tree_content.height($nav_tree.height() - $nav_tree_content.position().top); + } }; /* Initialisation section begins here */ if ($.cookie('pma_navi_width')) { @@ -1158,7 +1160,7 @@ PMA_fastFilter.filter.prototype.request = function () { self.xhr.abort(); } var url = $('#pma_navigation').find('a.navigation_url').attr('href'); - var results = self.$this.find('li:not(.hidden):not(.fast_filter):not(.navGroup)').not('[class^=new]').length; + var results = self.$this.find('li:not(.hidden):not(.fast_filter):not(.navGroup)').not('[class^=new]').not('[class^=warp_link]').length; var params = self.$this.find('> ul > li > form.fast_filter').first().serialize() + "&results=" + results; if (self.$this.find('> ul > li > form.fast_filter:first input[name=searchClause]').length === 0) { var $input = $('#pma_navigation_tree').find('li.fast_filter.db_fast_filter input.searchClause'); diff --git a/libraries/RecentFavoriteTable.class.php b/libraries/RecentFavoriteTable.class.php index d0fd6ccc9f..54041c51a3 100644 --- a/libraries/RecentFavoriteTable.class.php +++ b/libraries/RecentFavoriteTable.class.php @@ -202,7 +202,7 @@ class PMA_RecentFavoriteTable if (count($this->_tables)) { if ($this->_tableType == 'recent') { foreach ($this->_tables as $table) { - $html .= '
  • '; + $html .= '
  • ' + $html .= '