Load notification after window load
This commit is contained in:
1 parent
a11cad619d
commit
49cf72e058
1 file changed
+4
-2
@@ -28,10 +28,12 @@ var NotificationBase = new Class({
|
|||||||
$(App.block.notification).inject(App.getBlock('search'), 'after');
|
$(App.block.notification).inject(App.getBlock('search'), 'after');
|
||||||
self.badge = new Element('div.badge').inject(App.block.notification, 'top').hide();
|
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){
|
notify: function(result){
|
||||||
|
|||||||
Reference in new issue
Block a user