Add check when there is no #pma_navigation_tree_content

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
This commit is contained in:
Atul Pratap Singh 2014-04-28 01:56:00 +05:30
parent 9e5602eb37
commit cc7957fac3

View File

@ -890,6 +890,11 @@ var ResizeHandler = function () {
$nav_tree.height($nav.height() - $nav_header.height());
if ($nav_tree_content.length > 0) {
$nav_tree_content.height($nav_tree.height() - $nav_tree_content.position().top);
} else {
//TODO: in fast filter search response there is no #pma_navigation_tree_content, needs to be added in php
$nav_tree.css({
'overflow-y': 'auto'
});
}
};
/* Initialisation section begins here */