Modified datepicker control
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Generated by CoffeeScript 1.6.1
|
||||
var Mini, WSF_AUTOCOMPLETE_CONTROL, WSF_BUTTON_CONTROL, WSF_CHECKBOX_CONTROL, WSF_CHECKBOX_LIST_CONTROL, WSF_CODEVIEW_CONTROL, WSF_CONTROL, WSF_DATETIME_PICKER_CONTROL, WSF_DROPDOWN_CONTROL, WSF_FILE_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_NAVLIST_ITEM_CONTROL, WSF_PAGE_CONTROL, WSF_PAGINATION_CONTROL, WSF_PASSWORD_CONTROL, WSF_PROGRESS_CONTROL, WSF_REGEXP_VALIDATOR, WSF_REPEATER_CONTROL, WSF_SLIDER_CONTROL, WSF_TEXTAREA_CONTROL, WSF_VALIDATOR, build_control, cache, controls, lazy_load, loaded, parseSuggestions, redirect, show_alert, start_modal, start_modal_big, template, tmpl,
|
||||
var Mini, WSF_AUTOCOMPLETE_CONTROL, WSF_BUTTON_CONTROL, WSF_CHECKBOX_CONTROL, WSF_CHECKBOX_LIST_CONTROL, WSF_CODEVIEW_CONTROL, WSF_CONTROL, WSF_DATE_PICKER_CONTROL, WSF_DROPDOWN_CONTROL, WSF_FILE_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_NAVLIST_ITEM_CONTROL, WSF_PAGE_CONTROL, WSF_PAGINATION_CONTROL, WSF_PASSWORD_CONTROL, WSF_PROGRESS_CONTROL, WSF_REGEXP_VALIDATOR, WSF_REPEATER_CONTROL, WSF_SLIDER_CONTROL, WSF_TEXTAREA_CONTROL, WSF_VALIDATOR, build_control, cache, controls, lazy_load, loaded, parseSuggestions, redirect, show_alert, start_modal, start_modal_big, template, tmpl,
|
||||
__hasProp = {}.hasOwnProperty,
|
||||
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
||||
|
||||
@@ -883,29 +883,27 @@ WSF_AUTOCOMPLETE_CONTROL = (function(_super) {
|
||||
|
||||
})(WSF_INPUT_CONTROL);
|
||||
|
||||
WSF_DATETIME_PICKER_CONTROL = (function(_super) {
|
||||
WSF_DATE_PICKER_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_DATETIME_PICKER_CONTROL, _super);
|
||||
__extends(WSF_DATE_PICKER_CONTROL, _super);
|
||||
|
||||
function WSF_DATETIME_PICKER_CONTROL() {
|
||||
return WSF_DATETIME_PICKER_CONTROL.__super__.constructor.apply(this, arguments);
|
||||
function WSF_DATE_PICKER_CONTROL() {
|
||||
return WSF_DATE_PICKER_CONTROL.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
WSF_DATETIME_PICKER_CONTROL.prototype.requirements = ['assets/bootstrap-datetimepicker.css', 'assets/bootstrap-datetimepicker.js'];
|
||||
WSF_DATE_PICKER_CONTROL.prototype.requirements = ['assets/datepicker.css', 'assets/bootstrap-datepicker.js'];
|
||||
|
||||
WSF_DATETIME_PICKER_CONTROL.prototype.attach_events = function() {
|
||||
WSF_DATE_PICKER_CONTROL.prototype.attach_events = function() {
|
||||
var self;
|
||||
WSF_DATETIME_PICKER_CONTROL.__super__.attach_events.apply(this, arguments);
|
||||
WSF_DATE_PICKER_CONTROL.__super__.attach_events.apply(this, arguments);
|
||||
self = this;
|
||||
console.log(this.$el);
|
||||
return this.$el.datetimepicker({
|
||||
language: 'en',
|
||||
pick12HourFormat: false,
|
||||
startDate: new Date()
|
||||
return this.$el.datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
};
|
||||
|
||||
return WSF_DATETIME_PICKER_CONTROL;
|
||||
return WSF_DATE_PICKER_CONTROL;
|
||||
|
||||
})(WSF_INPUT_CONTROL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user