Implement repeater
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Generated by CoffeeScript 1.6.1
|
||||
(function() {
|
||||
var $el, Mini, WSF_AUTOCOMPLETE_CONTROL, WSF_BUTTON_CONTROL, WSF_CHECKBOX_CONTROL, WSF_CHECKBOX_LIST_CONTROL, WSF_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_PAGINATION_CONTROL, WSF_REGEXP_VALIDATOR, WSF_TEXTAREA_CONTROL, WSF_VALIDATOR, cache, controls, name, state, template, tmpl, trigger_callback, type, typemap, validatormap, _ref, _ref1, _ref2,
|
||||
var $el, Mini, WSF_AUTOCOMPLETE_CONTROL, WSF_BUTTON_CONTROL, WSF_CHECKBOX_CONTROL, WSF_CHECKBOX_LIST_CONTROL, WSF_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_PAGINATION_CONTROL, WSF_REGEXP_VALIDATOR, WSF_REPEATER_CONTROL, WSF_TEXTAREA_CONTROL, WSF_VALIDATOR, cache, controls, name, state, template, tmpl, trigger_callback, type, typemap, validatormap, _ref, _ref1, _ref2,
|
||||
__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; };
|
||||
|
||||
@@ -523,7 +523,7 @@
|
||||
window.states[this.control_name]['datasource'] = state.datasource;
|
||||
}
|
||||
if (state._body != null) {
|
||||
return this.$el.find('tbody').html($(state._body).html());
|
||||
return this.$el.find('tbody').html(state._body);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -531,6 +531,33 @@
|
||||
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_REPEATER_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_REPEATER_CONTROL, _super);
|
||||
|
||||
function WSF_REPEATER_CONTROL() {
|
||||
return WSF_REPEATER_CONTROL.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
WSF_REPEATER_CONTROL.prototype.attach_events = function() {
|
||||
var self;
|
||||
return self = this;
|
||||
};
|
||||
|
||||
WSF_REPEATER_CONTROL.prototype.update = function(state) {
|
||||
if (state.datasource != null) {
|
||||
window.states[this.control_name]['datasource'] = state.datasource;
|
||||
}
|
||||
if (state._body != null) {
|
||||
this.$el.find('.repeater_content').html(state._body);
|
||||
return console.log(state._body);
|
||||
}
|
||||
};
|
||||
|
||||
return WSF_REPEATER_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
|
||||
typemap = {
|
||||
"WSF_BUTTON_CONTROL": WSF_BUTTON_CONTROL,
|
||||
"WSF_INPUT_CONTROL": WSF_INPUT_CONTROL,
|
||||
@@ -541,7 +568,8 @@
|
||||
"WSF_HTML_CONTROL": WSF_HTML_CONTROL,
|
||||
"WSF_CHECKBOX_LIST_CONTROL": WSF_CHECKBOX_LIST_CONTROL,
|
||||
"WSF_PAGINATION_CONTROL": WSF_PAGINATION_CONTROL,
|
||||
"WSF_GRID_CONTROL": WSF_GRID_CONTROL
|
||||
"WSF_GRID_CONTROL": WSF_GRID_CONTROL,
|
||||
"WSF_REPEATER_CONTROL": WSF_REPEATER_CONTROL
|
||||
};
|
||||
|
||||
_ref = window.states;
|
||||
|
||||
Reference in New Issue
Block a user