From 824f721868554bcb3b890175b04af72b610f574f Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Wed, 20 Aug 2014 09:01:30 +0200 Subject: Initialize timepicker for html5 and non html5 browser on access point --- .../javascripts/plugins/bootstrap_timepicker_activation.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/assets/javascripts/plugins/bootstrap_timepicker_activation.coffee (limited to 'app/assets/javascripts/plugins') diff --git a/app/assets/javascripts/plugins/bootstrap_timepicker_activation.coffee b/app/assets/javascripts/plugins/bootstrap_timepicker_activation.coffee new file mode 100644 index 000000000..bfa7c5587 --- /dev/null +++ b/app/assets/javascripts/plugins/bootstrap_timepicker_activation.coffee @@ -0,0 +1,8 @@ +jQuery -> + if(!(Modernizr.inputtypes && Modernizr.inputtypes.time)) + $('input[type="time"]').timepicker( + template: false, + showInputs: false, + minuteStep: 1, + showMeridian: false, + ) \ No newline at end of file -- cgit v1.2.3