modified country and date/time chooser

This commit is contained in:
severin
2014-01-05 01:26:11 +01:00
parent 25fe7c8725
commit ecfd5738ce
11 changed files with 3433 additions and 1178 deletions

View File

@@ -552,6 +552,23 @@ class WSF_AUTOCOMPLETE_CONTROL extends WSF_INPUT_CONTROL
@$el.on 'typeahead:blured',()->
self.change()
class WSF_COUNTRY_CHOOSER_CONTROL extends WSF_INPUT_CONTROL
requirements: ['assets/bootstrap-formhelpers-countries.js', 'assets/bootstrap-formhelpers-countries-en-US.js', 'assets/bootstrap-formhelpers-selectbox.js']
class WSF_DATETIME_PICKER_CONTROL extends WSF_INPUT_CONTROL
requirements: ['assets/bootstrap-datetimepicker.css', 'assets/bootstrap-datetimepicker.js']
attach_events: () ->
super
self = @
console.log @$el
@$el.datetimepicker({
language : 'en',
pick12HourFormat : false,
startDate : new Date()
})
class WSF_CHECKBOX_CONTROL extends WSF_CONTROL
attach_events: ()->
super