Browse Source

Load notification after window load

pull/1757/head
Ruud 12 years ago
parent
commit
49cf72e058
  1. 6
      couchpotato/core/notifications/core/static/notification.js

6
couchpotato/core/notifications/core/static/notification.js

@ -28,10 +28,12 @@ var NotificationBase = new Class({
$(App.block.notification).inject(App.getBlock('search'), 'after');
self.badge = new Element('div.badge').inject(App.block.notification, 'top').hide();
self.startInterval.delay($(window).getSize().x <= 480 ? 2000 : 1000, self);
});
window.addEvent('load', function(){
self.startInterval.delay($(window).getSize().x <= 480 ? 2000 : 100, self);
})
},
notify: function(result){

Loading…
Cancel
Save