Close #1003.
This commit is contained in:
parent
6425a2a36d
commit
182046f254
@ -54,6 +54,8 @@ Header =
|
|||||||
@setBarVisibility Conf['Header auto-hide']
|
@setBarVisibility Conf['Header auto-hide']
|
||||||
$.sync 'Header auto-hide', @setBarVisibility
|
$.sync 'Header auto-hide', @setBarVisibility
|
||||||
|
|
||||||
|
$.on d, 'CreateNotification', @createNotification
|
||||||
|
|
||||||
$.asap (-> d.body), ->
|
$.asap (-> d.body), ->
|
||||||
return unless Main.isThisPageLegit()
|
return unless Main.isThisPageLegit()
|
||||||
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
||||||
@ -188,6 +190,11 @@ Header =
|
|||||||
menuToggle: (e) ->
|
menuToggle: (e) ->
|
||||||
Header.menu.toggle e, @, g
|
Header.menu.toggle e, @, g
|
||||||
|
|
||||||
|
createNotification: (e) ->
|
||||||
|
{type, content, lifetime, cb} = e.detail
|
||||||
|
notif = new Notification type, content, lifetime
|
||||||
|
cb notif if cb
|
||||||
|
|
||||||
class Notification
|
class Notification
|
||||||
constructor: (type, content, @timeout) ->
|
constructor: (type, content, @timeout) ->
|
||||||
@add = add.bind @
|
@add = add.bind @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user