diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-19 00:31:49 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-19 00:31:49 +0100 |
commit | 1dd70ac506982d230d18059ba3626ef2a92664fd (patch) | |
tree | d6945a4da5a419bad45016e919d9fcb7132ce4da /core/js/js.js | |
parent | cdd07b33392897b1b6c7f5707b83874ba06ec363 (diff) | |
download | nextcloud-server-1dd70ac506982d230d18059ba3626ef2a92664fd.tar.gz nextcloud-server-1dd70ac506982d230d18059ba3626ef2a92664fd.zip |
update used space percent after each ajax call and display the notification
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3160159e287..2daf63af9d8 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -297,7 +297,7 @@ OC.Notification={ hide: function(callback) { $("#notification").text(''); $('#notification').fadeOut('400', function(){ - if ($("#notification").text() === '') { + if (OC.Notification.isHidden()) { if (OC.Notification.getDefaultNotificationFunction) { OC.Notification.getDefaultNotificationFunction.call(); } @@ -318,7 +318,10 @@ OC.Notification={ notification.hide(); notification.text(text); notification.fadeIn().css("display","inline"); - } + }, + isHidden: function() { + return ($("#notification").text() === ''); + } }; OC.Breadcrumb={ |