Fix early notices.
This commit is contained in:
parent
61cd553a64
commit
6460d5e0c1
@ -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',
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user