mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
put date-picker back in
This commit is contained in:
parent
f0f565e5cc
commit
14fb52c11e
1 changed files with 6 additions and 6 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'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue