add bootstrap-datepicker submodule, remove html5 date field (seems

poorly supported)
This commit is contained in:
Tyler Renelle
2013-02-16 18:59:42 -05:00
parent 63ffa9a292
commit fc7a1fd7a3
77 changed files with 6887 additions and 1 deletions
+3
View File
@@ -15,6 +15,7 @@ module.exports.resetDom = (model) ->
window.DERBY.app.dom.clear()
restoreRefs(model)
window.DERBY.app.view.render(model)
$('.datepicker').datepicker();
module.exports.app = (appExports, model) ->
loadJavaScripts(model)
@@ -22,6 +23,7 @@ module.exports.app = (appExports, model) ->
setupTooltips(model)
setupTour(model)
setupGrowlNotifications(model) unless model.get('_view.mobileDevice')
$('.datepicker').datepicker();
###
Loads JavaScript files from (1) public/js/* and (2) external sources
@@ -37,6 +39,7 @@ loadJavaScripts = (model) ->
require '../../public/js/bootstrap.min' #http://twitter.github.com/bootstrap/assets/js/bootstrap.min.js
require '../../public/js/jquery.cookie' #https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js
require '../../public/js/bootstrap-tour' #https://raw.github.com/pushly/bootstrap-tour/master/bootstrap-tour.js
require '../../public/vendor/bootstrap-datepicker/js/bootstrap-datepicker'
require '../../public/js/jquery.bootstrap-growl.min'
# JS files not needed right away (google charts) or entirely optional (analytics)