put date-picker back in

This commit is contained in:
Tyler Renelle 2013-02-19 13:43:10 -05:00
parent f0f565e5cc
commit 14fb52c11e

View file

@ -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'