]> source.dussan.org Git - nextcloud-server.git/commitdiff
update OC.Notification.show
authorGeorg Ehrke <georg@ownCloud.com>
Sat, 2 Mar 2013 16:36:04 +0000 (17:36 +0100)
committerGeorg Ehrke <georg@ownCloud.com>
Sat, 2 Mar 2013 16:36:04 +0000 (17:36 +0100)
core/js/js.js

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