Hide throbber when not in use to free some area

This commit is contained in:
Atul Pratap Singh 2013-08-25 22:56:37 +05:30
parent 73c3cd906e
commit 28041ddb80
2 changed files with 9 additions and 3 deletions

View File

@ -259,7 +259,10 @@ function PMA_autoExpandDatabaseInUse($oldDb, $newDb) {
function PMA_reloadNavigation(callback) {
var $throbber = $('#pma_navigation .throbber')
.first()
.css('visibility', 'visible');
.css({
'visibility' : 'visible',
'display' : 'block'
});
var params = {
reload: true,
pos: $('#pma_navigation_tree').find('a.expander:first > span.pos').text()
@ -302,7 +305,10 @@ function PMA_reloadNavigation(callback) {
});
var url = $('#pma_navigation').find('a.navigation_url').attr('href');
$.post(url, params, function (data) {
$throbber.css('visibility', 'hidden');
$throbber.css('visibility', 'hidden').css({
'visibility' : 'hidden',
'display' : 'none'
});
if (data.success) {
$('#pma_navigation_tree').html(data.message).children('div').show();
// Fire the callback, if any

View File

@ -84,7 +84,7 @@ if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
}
#pma_navigation_content > img.throbber {
display: block;
display: none;
margin: .3em auto 0;
}