aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/plugins')
-rw-r--r--app/assets/javascripts/plugins/bootstrap_timepicker_activation.coffee8
1 files changed, 8 insertions, 0 deletions
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