Fix early notices.
This commit is contained in:
parent
61cd553a64
commit
6460d5e0c1
@ -6,6 +6,7 @@ Header =
|
|||||||
|
|
||||||
@bar = $ '#header-bar', headerEl
|
@bar = $ '#header-bar', headerEl
|
||||||
@toggle = $ '#toggle-header-bar', @bar
|
@toggle = $ '#toggle-header-bar', @bar
|
||||||
|
@noticesRoot = $ '#notifications', headerEl
|
||||||
|
|
||||||
@menu = new UI.Menu 'header'
|
@menu = new UI.Menu 'header'
|
||||||
menuButton = $.el 'a',
|
menuButton = $.el 'a',
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class Notice
|
|||||||
$.on d, 'visibilitychange', @add
|
$.on d, 'visibilitychange', @add
|
||||||
return
|
return
|
||||||
$.off d, 'visibilitychange', @add
|
$.off d, 'visibilitychange', @add
|
||||||
$.add $.id('notifications'), @el
|
$.add Header.noticesRoot, @el
|
||||||
@el.clientHeight # force reflow
|
@el.clientHeight # force reflow
|
||||||
@el.style.opacity = 1
|
@el.style.opacity = 1
|
||||||
setTimeout @close, @timeout * $.SECOND if @timeout
|
setTimeout @close, @timeout * $.SECOND if @timeout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user