mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
only setup bootstrap growl notifications once. i still don't get this.
this issue is caused after browser.resetDom(), which happens on (1) cron, (2) reset, (3) reroll. after which for some people this commit will cause notifications to disappear altogether, while for others reverting this commit will cause notifications to double.
This commit is contained in:
parent
721803d4de
commit
bb5fe4520f
1 changed files with 1 additions and 1 deletions
|
|
@ -201,12 +201,12 @@ module.exports.resetDom = (model) ->
|
|||
|
||||
module.exports.app = (appExports, model, app) ->
|
||||
loadJavaScripts(model)
|
||||
setupGrowlNotifications(model) unless model.get('_view.mobileDevice')
|
||||
|
||||
app.on 'render', (ctx) ->
|
||||
#restoreRefs(model)
|
||||
setupSortable(model)
|
||||
setupTooltips(model)
|
||||
setupGrowlNotifications(model) unless model.get('_view.mobileDevice')
|
||||
#setupTour(model)
|
||||
$('.datepicker').datepicker({autoclose:true, todayBtn:true})
|
||||
.on 'changeDate', (ev) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue