Fix early notices.

This commit is contained in:
Mayhem 2013-11-02 15:55:50 +01:00
parent 61cd553a64
commit 6460d5e0c1
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Header =
@bar = $ '#header-bar', headerEl
@toggle = $ '#toggle-header-bar', @bar
@noticesRoot = $ '#notifications', headerEl
@menu = new UI.Menu 'header'
menuButton = $.el 'a',

View File

@ -19,7 +19,7 @@ class Notice
$.on d, 'visibilitychange', @add
return
$.off d, 'visibilitychange', @add
$.add $.id('notifications'), @el
$.add Header.noticesRoot, @el
@el.clientHeight # force reflow
@el.style.opacity = 1
setTimeout @close, @timeout * $.SECOND if @timeout