modified country and date/time chooser
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user