Fixed js
This commit is contained in:
@@ -267,6 +267,9 @@ class WSF_PAGE_CONTROL extends WSF_CONTROL
|
||||
class WSF_SLIDER_CONTROL extends WSF_CONTROL
|
||||
requirements: ['assets/bootstrap.min.js']
|
||||
|
||||
class WSF_DROPDOWN_CONTROL extends WSF_CONTROL
|
||||
requirements: ['assets/bootstrap.min.js']
|
||||
|
||||
controls = {}
|
||||
|
||||
class WSF_BUTTON_CONTROL extends WSF_CONTROL
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
// Generated by CoffeeScript 1.6.1
|
||||
(function() {
|
||||
var Mini, WSF_AUTOCOMPLETE_CONTROL, WSF_BUTTON_CONTROL, WSF_CHECKBOX_CONTROL, WSF_CHECKBOX_LIST_CONTROL, WSF_CODEVIEW_CONTROL, WSF_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_PAGE_CONTROL, WSF_PAGINATION_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, 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_DROPDOWN_CONTROL, WSF_FORM_ELEMENT_CONTROL, WSF_GRID_CONTROL, WSF_HTML_CONTROL, WSF_INPUT_CONTROL, WSF_MAX_VALIDATOR, WSF_MIN_VALIDATOR, WSF_PAGE_CONTROL, WSF_PAGINATION_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, 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; };
|
||||
|
||||
cache = {};
|
||||
cache = {};
|
||||
|
||||
jQuery.cachedAsset = function(url, options) {
|
||||
jQuery.cachedAsset = function(url, options) {
|
||||
var head, onload, script, success, successful, timeoutHandle;
|
||||
if (/\.css$/.test(url)) {
|
||||
$("<link/>", {
|
||||
@@ -65,9 +64,9 @@
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
jQuery.unparam = function(value) {
|
||||
jQuery.unparam = function(value) {
|
||||
var i, l, pair, params, pieces;
|
||||
params = {};
|
||||
pieces = value.split("&");
|
||||
@@ -82,9 +81,9 @@
|
||||
i++;
|
||||
}
|
||||
return params;
|
||||
};
|
||||
};
|
||||
|
||||
template = tmpl = function(str, data) {
|
||||
template = tmpl = function(str, data) {
|
||||
var fn;
|
||||
fn = (!/\W/.test(str) ? cache[str] = cache[str] || tmpl(str) : new Function("obj", "var p=[],print=function(){p.push.apply(p,arguments);};" + "with(obj){p.push('" + str.replace(/[\r\t\n]/g, " ").split("{{").join("\t").replace(/((^|}})[^\t]*)'/g, "$1\r").replace(/\t=(.*?)}}/g, "',$1,'").split("\t").join("');").split("}}").join("p.push('").split("\r").join("\\'") + "');}return p.join('');"));
|
||||
if (data) {
|
||||
@@ -92,19 +91,19 @@
|
||||
} else {
|
||||
return fn;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Mini = {
|
||||
Mini = {
|
||||
compile: function(t) {
|
||||
return {
|
||||
render: template(t)
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
loaded = {};
|
||||
loaded = {};
|
||||
|
||||
lazy_load = function(requirements, fn, that) {
|
||||
lazy_load = function(requirements, fn, that) {
|
||||
if (requirements.length === 0) {
|
||||
return function() {
|
||||
var a;
|
||||
@@ -138,9 +137,9 @@
|
||||
}
|
||||
return done();
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
build_control = function(control_name, state, control) {
|
||||
build_control = function(control_name, state, control) {
|
||||
var $el, type, typeclass;
|
||||
$el = control.$el.find('[data-name=' + control_name + ']');
|
||||
type = $el.data('type');
|
||||
@@ -154,9 +153,9 @@
|
||||
return new typeclass(control, $el, control_name, state);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
};
|
||||
|
||||
WSF_VALIDATOR = (function() {
|
||||
WSF_VALIDATOR = (function() {
|
||||
|
||||
function WSF_VALIDATOR(parent_control, settings) {
|
||||
this.parent_control = parent_control;
|
||||
@@ -171,9 +170,9 @@
|
||||
|
||||
return WSF_VALIDATOR;
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
WSF_REGEXP_VALIDATOR = (function(_super) {
|
||||
WSF_REGEXP_VALIDATOR = (function(_super) {
|
||||
|
||||
__extends(WSF_REGEXP_VALIDATOR, _super);
|
||||
|
||||
@@ -191,9 +190,9 @@
|
||||
|
||||
return WSF_REGEXP_VALIDATOR;
|
||||
|
||||
})(WSF_VALIDATOR);
|
||||
})(WSF_VALIDATOR);
|
||||
|
||||
WSF_MIN_VALIDATOR = (function(_super) {
|
||||
WSF_MIN_VALIDATOR = (function(_super) {
|
||||
|
||||
__extends(WSF_MIN_VALIDATOR, _super);
|
||||
|
||||
@@ -209,9 +208,9 @@
|
||||
|
||||
return WSF_MIN_VALIDATOR;
|
||||
|
||||
})(WSF_VALIDATOR);
|
||||
})(WSF_VALIDATOR);
|
||||
|
||||
WSF_MAX_VALIDATOR = (function(_super) {
|
||||
WSF_MAX_VALIDATOR = (function(_super) {
|
||||
|
||||
__extends(WSF_MAX_VALIDATOR, _super);
|
||||
|
||||
@@ -227,9 +226,9 @@
|
||||
|
||||
return WSF_MAX_VALIDATOR;
|
||||
|
||||
})(WSF_VALIDATOR);
|
||||
})(WSF_VALIDATOR);
|
||||
|
||||
WSF_CONTROL = (function() {
|
||||
WSF_CONTROL = (function() {
|
||||
|
||||
WSF_CONTROL.prototype.requirements = [];
|
||||
|
||||
@@ -398,9 +397,9 @@
|
||||
|
||||
return WSF_CONTROL;
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
WSF_PAGE_CONTROL = (function(_super) {
|
||||
WSF_PAGE_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_PAGE_CONTROL, _super);
|
||||
|
||||
@@ -428,9 +427,9 @@
|
||||
|
||||
return WSF_PAGE_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_SLIDER_CONTROL = (function(_super) {
|
||||
WSF_SLIDER_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_SLIDER_CONTROL, _super);
|
||||
|
||||
@@ -442,11 +441,25 @@
|
||||
|
||||
return WSF_SLIDER_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
controls = {};
|
||||
WSF_DROPDOWN_CONTROL = (function(_super) {
|
||||
|
||||
WSF_BUTTON_CONTROL = (function(_super) {
|
||||
__extends(WSF_DROPDOWN_CONTROL, _super);
|
||||
|
||||
function WSF_DROPDOWN_CONTROL() {
|
||||
return WSF_DROPDOWN_CONTROL.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
WSF_DROPDOWN_CONTROL.prototype.requirements = ['assets/bootstrap.min.js'];
|
||||
|
||||
return WSF_DROPDOWN_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
|
||||
controls = {};
|
||||
|
||||
WSF_BUTTON_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_BUTTON_CONTROL, _super);
|
||||
|
||||
@@ -479,9 +492,9 @@
|
||||
|
||||
return WSF_BUTTON_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_INPUT_CONTROL = (function(_super) {
|
||||
WSF_INPUT_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_INPUT_CONTROL, _super);
|
||||
|
||||
@@ -519,9 +532,9 @@
|
||||
|
||||
return WSF_INPUT_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_TEXTAREA_CONTROL = (function(_super) {
|
||||
WSF_TEXTAREA_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_TEXTAREA_CONTROL, _super);
|
||||
|
||||
@@ -531,9 +544,9 @@
|
||||
|
||||
return WSF_TEXTAREA_CONTROL;
|
||||
|
||||
})(WSF_INPUT_CONTROL);
|
||||
})(WSF_INPUT_CONTROL);
|
||||
|
||||
WSF_CODEVIEW_CONTROL = (function(_super) {
|
||||
WSF_CODEVIEW_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_CODEVIEW_CONTROL, _super);
|
||||
|
||||
@@ -561,9 +574,9 @@
|
||||
|
||||
return WSF_CODEVIEW_CONTROL;
|
||||
|
||||
})(WSF_INPUT_CONTROL);
|
||||
})(WSF_INPUT_CONTROL);
|
||||
|
||||
WSF_AUTOCOMPLETE_CONTROL = (function(_super) {
|
||||
WSF_AUTOCOMPLETE_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_AUTOCOMPLETE_CONTROL, _super);
|
||||
|
||||
@@ -609,9 +622,9 @@
|
||||
|
||||
return WSF_AUTOCOMPLETE_CONTROL;
|
||||
|
||||
})(WSF_INPUT_CONTROL);
|
||||
})(WSF_INPUT_CONTROL);
|
||||
|
||||
WSF_CHECKBOX_CONTROL = (function(_super) {
|
||||
WSF_CHECKBOX_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_CHECKBOX_CONTROL, _super);
|
||||
|
||||
@@ -650,9 +663,9 @@
|
||||
|
||||
return WSF_CHECKBOX_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_FORM_ELEMENT_CONTROL = (function(_super) {
|
||||
WSF_FORM_ELEMENT_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_FORM_ELEMENT_CONTROL, _super);
|
||||
|
||||
@@ -721,9 +734,9 @@
|
||||
|
||||
return WSF_FORM_ELEMENT_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_HTML_CONTROL = (function(_super) {
|
||||
WSF_HTML_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_HTML_CONTROL, _super);
|
||||
|
||||
@@ -744,9 +757,9 @@
|
||||
|
||||
return WSF_HTML_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_CHECKBOX_LIST_CONTROL = (function(_super) {
|
||||
WSF_CHECKBOX_LIST_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_CHECKBOX_LIST_CONTROL, _super);
|
||||
|
||||
@@ -783,9 +796,9 @@
|
||||
|
||||
return WSF_CHECKBOX_LIST_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_PROGRESS_CONTROL = (function(_super) {
|
||||
WSF_PROGRESS_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_PROGRESS_CONTROL, _super);
|
||||
|
||||
@@ -821,9 +834,9 @@
|
||||
|
||||
return WSF_PROGRESS_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_PAGINATION_CONTROL = (function(_super) {
|
||||
WSF_PAGINATION_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_PAGINATION_CONTROL, _super);
|
||||
|
||||
@@ -860,9 +873,9 @@
|
||||
|
||||
return WSF_PAGINATION_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_GRID_CONTROL = (function(_super) {
|
||||
WSF_GRID_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_GRID_CONTROL, _super);
|
||||
|
||||
@@ -887,9 +900,9 @@
|
||||
|
||||
return WSF_GRID_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
WSF_REPEATER_CONTROL = (function(_super) {
|
||||
WSF_REPEATER_CONTROL = (function(_super) {
|
||||
|
||||
__extends(WSF_REPEATER_CONTROL, _super);
|
||||
|
||||
@@ -915,13 +928,13 @@
|
||||
|
||||
return WSF_REPEATER_CONTROL;
|
||||
|
||||
})(WSF_CONTROL);
|
||||
})(WSF_CONTROL);
|
||||
|
||||
show_alert = function(action) {
|
||||
show_alert = function(action) {
|
||||
return alert(action.message);
|
||||
};
|
||||
};
|
||||
|
||||
start_modal = lazy_load(['assets/bootstrap.min.js'], function(action) {
|
||||
start_modal = lazy_load(['assets/bootstrap.min.js'], function(action) {
|
||||
var cssclass, modal;
|
||||
cssclass = "";
|
||||
if (action.type === "start_modal_big") {
|
||||
@@ -940,8 +953,6 @@
|
||||
}).done(function(data) {
|
||||
return modal.find('.modal-body').append(data);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
start_modal_big = start_modal;
|
||||
|
||||
}).call(this);
|
||||
start_modal_big = start_modal;
|
||||
|
||||
Reference in New Issue
Block a user