mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
try removing datepicker and moving browser stuff to the bottom
This commit is contained in:
parent
dc20272217
commit
90af514fbc
2 changed files with 7 additions and 7 deletions
|
|
@ -27,11 +27,11 @@ reconstructPage = (model) ->
|
|||
setupTooltips(model)
|
||||
setupTour(model)
|
||||
setupGrowlNotifications(model) unless model.get('_view.mobileDevice')
|
||||
$('.datepicker').datepicker({autoclose:true, todayBtn:true})
|
||||
.on 'changeDate', (ev) ->
|
||||
#for some reason selecting a date doesn't fire a change event on the field, meaning our changes aren't saved
|
||||
#FIXME also, it saves as a day behind??
|
||||
model.at(ev.target).set 'date', moment(ev.date).add('d',1).format('MM/DD/YYYY')
|
||||
# $('.datepicker').datepicker({autoclose:true, todayBtn:true})
|
||||
# .on 'changeDate', (ev) ->
|
||||
# #for some reason selecting a date doesn't fire a change event on the field, meaning our changes aren't saved
|
||||
# #FIXME also, it saves as a day behind??
|
||||
# model.at(ev.target).set 'date', moment(ev.date).add('d',1).format('MM/DD/YYYY')
|
||||
|
||||
###
|
||||
Loads JavaScript files from (1) public/js/* and (2) external sources
|
||||
|
|
@ -58,7 +58,7 @@ loadJavaScripts = (model) ->
|
|||
|
||||
require '../../public/vendor/jquery-cookie/jquery.cookie'
|
||||
require '../../public/vendor/bootstrap-tour' #https://raw.github.com/pushly/bootstrap-tour/master/bootstrap-tour.js
|
||||
require '../../public/vendor/bootstrap-datepicker/js/bootstrap-datepicker'
|
||||
#require '../../public/vendor/bootstrap-datepicker/js/bootstrap-datepicker'
|
||||
require '../../public/vendor/bootstrap-growl/jquery.bootstrap-growl.min'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ ready (model) ->
|
|||
|
||||
scoring.cron()
|
||||
|
||||
browser.app(exports, model)
|
||||
character.app(exports, model)
|
||||
tasks.app(exports, model)
|
||||
items.app(exports, model)
|
||||
|
|
@ -59,4 +58,5 @@ ready (model) ->
|
|||
profile.app(exports, model)
|
||||
require('../server/private').app(exports, model)
|
||||
require('./debug').app(exports, model) if model.get('_view.nodeEnv') != 'production'
|
||||
browser.app(exports, model)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue