Commits

Moritz Schlarb committed 2e3deed

Add resources to CalendarDateTimePicker

And move resources to headbottom.

  • Participants
  • Parent commits e2c4885

Comments (0)

Files changed (1)

tw2/bootstrap/widgets.py

 bootstrap_js = twc.JSLink(
     modname=__name__,
     filename='static/bootstrap/js/bootstrap.js',
-    resources=[twj.jquery_js])
+    resources=[twj.jquery_js],
+    location='headbottom')
 
 datepicker_img = twc.DirLink(
     modname=__name__,
 datepicker_js = twc.JSLink(
     modname=__name__,
     filename='static/datepicker/js/bootstrap-datepicker.js',
-    resources=[bootstrap_js])
+    resources=[bootstrap_js],
+    location='headbottom')
 
 timepicker_css = twc.CSSLink(
     modname=__name__,
 timepicker_js = twc.JSLink(
     modname=__name__,
     filename='static/timepicker/js/bootstrap-timepicker.js',
-    resources=[bootstrap_js])
+    resources=[bootstrap_js],
+    location='headbottom')
 
 
 class Bootstrap(twc.Widget):
 
 
 class CalendarDateTimePicker(Bootstrap, twc.CompoundWidget):
+    resources = set(CalendarDatePicker.resources + CalendarTimePicker.resources)
     date = CalendarDatePicker()
     time = CalendarTimePicker()