update OC.Notification.show

This commit is contained in:
Georg Ehrke 2013-03-02 17:36:04 +01:00
parent ff9476b3e3
commit 22424e8abc
1 changed files with 3 additions and 9 deletions

View File

@ -348,15 +348,9 @@ OC.Notification={
} }
}, },
show: function(text) { show: function(text) {
if(text == ''){ if(($('#notification').filter('span.undo').length == 1) || OC.Notification.isHidden()){
return false; $('#notification').html(html);
} $('#notification').fadeIn().css("display","inline");
if(OC.Notification.currentlyShownNotifications < 2){
var notification = $('#notification');
notification.hide();
notification.text(text);
notification.fadeIn().css("display","inline");
OC.Notification.currentlyShownNotifications++;
}else{ }else{
OC.Notification.queuedNotifications.push($(text).html()); OC.Notification.queuedNotifications.push($(text).html());
} }