Skip to content
Snippets Groups Projects
Commit 22424e8a authored by Georg Ehrke's avatar Georg Ehrke
Browse files

update OC.Notification.show

parent ff9476b3
No related branches found
No related tags found
No related merge requests found
...@@ -348,15 +348,9 @@ OC.Notification={ ...@@ -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());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment