fixed js
This commit is contained in:
1392
examples/widgetapp/assets/bootstrap-formhelpers-countries.css
vendored
Normal file
1392
examples/widgetapp/assets/bootstrap-formhelpers-countries.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
330
examples/widgetapp/assets/bootstrap-formhelpers.css
vendored
Normal file
330
examples/widgetapp/assets/bootstrap-formhelpers.css
vendored
Normal file
@@ -0,0 +1,330 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Form Helpers
|
||||||
|
*
|
||||||
|
* Copyright 2012 Vincent Lamanna, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built by @vincent lamanna.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.bfh-selectbox {
|
||||||
|
height: 30px;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-toggle {
|
||||||
|
*margin-bottom: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-toggle:active,
|
||||||
|
.open .bfh-selectbox-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 2px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox > .bfh-selectbox-toggle > .caret {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
display: none;
|
||||||
|
float: left;
|
||||||
|
min-width: 160px;
|
||||||
|
padding: 5px 0;
|
||||||
|
margin: 2px 0 0;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
*border-right-width: 2px;
|
||||||
|
*border-bottom-width: 2px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options.pull-right {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options a {
|
||||||
|
display: block;
|
||||||
|
padding: 3px 20px;
|
||||||
|
clear: both;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 20px;
|
||||||
|
height: 20px;
|
||||||
|
color: #333333;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-googlefonts .bfh-selectbox-options a {
|
||||||
|
height: 30px;
|
||||||
|
text-indent: -9999px;
|
||||||
|
background-image: url(../img/bootstrap-formhelpers-googlefonts.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options li > a:focus {
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #0088cc;
|
||||||
|
background-color: #0081c2;
|
||||||
|
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
||||||
|
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-googlefonts .bfh-selectbox-options li > a:focus {
|
||||||
|
background-image: url(../img/bootstrap-formhelpers-googlefonts.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: none;
|
||||||
|
background-color: transparent;
|
||||||
|
filter: none;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options .active > a,
|
||||||
|
.bfh-selectbox-options .active > a:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #0088cc;
|
||||||
|
background-color: #0081c2;
|
||||||
|
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
||||||
|
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
||||||
|
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
outline: 0;
|
||||||
|
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-googlefonts .bfh-selectbox-options .active > a,
|
||||||
|
.bfh-googlefonts .bfh-selectbox-options .active > a:hover {
|
||||||
|
background-image: url(../img/bootstrap-formhelpers-googlefonts.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: none;
|
||||||
|
background-color: transparent;
|
||||||
|
filter: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options .disabled > a,
|
||||||
|
.bfh-selectbox-options .disabled > a:hover {
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open {
|
||||||
|
*z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open > .bfh-selectbox-options {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pull-right > .bfh-selectbox-options {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox > .bfh-selectbox-toggle {
|
||||||
|
color: #000;
|
||||||
|
padding: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: white;
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-options ul {
|
||||||
|
max-height: 200px;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
margin: 5px 0 0 0;
|
||||||
|
width: 240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox-filter {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-selectbox > .bfh-selectbox-toggle > .bfh-selectbox-option {
|
||||||
|
display: inline-block;
|
||||||
|
float: left;
|
||||||
|
height: 20px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.bfh-countries {
|
||||||
|
line-height: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar {
|
||||||
|
width: 376px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar .months-header > th {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar .months-header > th.month > span {
|
||||||
|
width: 100px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar .months-header > th.year > span {
|
||||||
|
width: 50px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar .days-header > th {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar > tbody > tr > td {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar > tbody > tr > td.today {
|
||||||
|
background-color: #999;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table.calendar > tbody > tr > td.off {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-toggle {
|
||||||
|
*margin-bottom: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
display: none;
|
||||||
|
float: left;
|
||||||
|
min-width: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar.pull-right {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open > .bfh-datepicker-calendar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-datepicker-calendar > table > tbody > tr > td:not(.off):hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #0088cc;
|
||||||
|
background-color: #0081c2;
|
||||||
|
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
|
||||||
|
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
|
||||||
|
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
outline: 0;
|
||||||
|
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover > table {
|
||||||
|
width: 180px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover > table > tbody > tr > td {
|
||||||
|
text-align: center;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover > table > tbody > tr > td.separator {
|
||||||
|
line-height: 65px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover > table > tbody > tr > td > input {
|
||||||
|
margin: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-toggle {
|
||||||
|
*margin-bottom: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
display: none;
|
||||||
|
float: left;
|
||||||
|
min-width: 160px;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
*border-right-width: 2px;
|
||||||
|
*border-bottom-width: 2px;
|
||||||
|
-webkit-border-radius: 6px;
|
||||||
|
-moz-border-radius: 6px;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bfh-timepicker-popover.pull-right {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.open > .bfh-timepicker-popover {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
@@ -553,8 +553,7 @@ class WSF_AUTOCOMPLETE_CONTROL extends WSF_INPUT_CONTROL
|
|||||||
self.change()
|
self.change()
|
||||||
|
|
||||||
class WSF_COUNTRY_CHOOSER_CONTROL extends WSF_INPUT_CONTROL
|
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']
|
requirements: ['assets/bootstrap-formhelpers-countries.js', 'assets/bootstrap-formhelpers-countries-en-US.js', 'assets/bootstrap-formhelpers-selectbox.js', 'assets/bootstrap-formhelpers-countries.css', 'assets/bootstrap-formhelpers.css']
|
||||||
|
|
||||||
|
|
||||||
class WSF_DATETIME_PICKER_CONTROL extends WSF_INPUT_CONTROL
|
class WSF_DATETIME_PICKER_CONTROL extends WSF_INPUT_CONTROL
|
||||||
requirements: ['assets/bootstrap-datetimepicker.css', 'assets/bootstrap-datetimepicker.js']
|
requirements: ['assets/bootstrap-datetimepicker.css', 'assets/bootstrap-datetimepicker.js']
|
||||||
@@ -564,8 +563,8 @@ class WSF_DATETIME_PICKER_CONTROL extends WSF_INPUT_CONTROL
|
|||||||
self = @
|
self = @
|
||||||
console.log @$el
|
console.log @$el
|
||||||
@$el.datetimepicker({
|
@$el.datetimepicker({
|
||||||
language : 'en',
|
language : 'en'
|
||||||
pick12HourFormat : false,
|
pick12HourFormat : false
|
||||||
startDate : new Date()
|
startDate : new Date()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
// Generated by CoffeeScript 1.6.1
|
// 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_COUNTRY_CHOOSER_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_COUNTRY_CHOOSER_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,
|
|
||||||
__hasProp = {}.hasOwnProperty,
|
__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; };
|
__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;
|
var head, onload, script, success, successful, timeoutHandle;
|
||||||
if (/\.css$/.test(url)) {
|
if (/\.css$/.test(url)) {
|
||||||
$("<link/>", {
|
$("<link/>", {
|
||||||
@@ -65,9 +64,9 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
jQuery.unparam = function(value) {
|
jQuery.unparam = function(value) {
|
||||||
var i, l, pair, params, pieces;
|
var i, l, pair, params, pieces;
|
||||||
params = {};
|
params = {};
|
||||||
pieces = value.split("&");
|
pieces = value.split("&");
|
||||||
@@ -82,9 +81,9 @@
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
return params;
|
return params;
|
||||||
};
|
};
|
||||||
|
|
||||||
template = tmpl = function(str, data) {
|
template = tmpl = function(str, data) {
|
||||||
var fn;
|
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('');"));
|
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) {
|
if (data) {
|
||||||
@@ -92,17 +91,17 @@
|
|||||||
} else {
|
} else {
|
||||||
return fn;
|
return fn;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Mini = {
|
Mini = {
|
||||||
compile: function(t) {
|
compile: function(t) {
|
||||||
return {
|
return {
|
||||||
render: template(t)
|
render: template(t)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
parseSuggestions = function(data) {
|
parseSuggestions = function(data) {
|
||||||
var a, d;
|
var a, d;
|
||||||
for (a in data) {
|
for (a in data) {
|
||||||
if (a === 'suggestions') {
|
if (a === 'suggestions') {
|
||||||
@@ -115,11 +114,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
loaded = {};
|
loaded = {};
|
||||||
|
|
||||||
lazy_load = function(requirements, fn, that) {
|
lazy_load = function(requirements, fn, that) {
|
||||||
if (requirements.length === 0) {
|
if (requirements.length === 0) {
|
||||||
return function() {
|
return function() {
|
||||||
var a;
|
var a;
|
||||||
@@ -153,9 +152,9 @@
|
|||||||
}
|
}
|
||||||
return done();
|
return done();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
build_control = function(control_name, state, control) {
|
build_control = function(control_name, state, control) {
|
||||||
var $el, type, typeclass;
|
var $el, type, typeclass;
|
||||||
$el = control.$el.find('[data-name=' + control_name + ']').first();
|
$el = control.$el.find('[data-name=' + control_name + ']').first();
|
||||||
type = $el.data('type');
|
type = $el.data('type');
|
||||||
@@ -169,9 +168,9 @@
|
|||||||
return new typeclass(control, $el, control_name, state);
|
return new typeclass(control, $el, control_name, state);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
WSF_VALIDATOR = (function() {
|
WSF_VALIDATOR = (function() {
|
||||||
|
|
||||||
function WSF_VALIDATOR(parent_control, settings) {
|
function WSF_VALIDATOR(parent_control, settings) {
|
||||||
this.parent_control = parent_control;
|
this.parent_control = parent_control;
|
||||||
@@ -186,9 +185,9 @@
|
|||||||
|
|
||||||
return WSF_VALIDATOR;
|
return WSF_VALIDATOR;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
WSF_REGEXP_VALIDATOR = (function(_super) {
|
WSF_REGEXP_VALIDATOR = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_REGEXP_VALIDATOR, _super);
|
__extends(WSF_REGEXP_VALIDATOR, _super);
|
||||||
|
|
||||||
@@ -206,9 +205,9 @@
|
|||||||
|
|
||||||
return WSF_REGEXP_VALIDATOR;
|
return WSF_REGEXP_VALIDATOR;
|
||||||
|
|
||||||
})(WSF_VALIDATOR);
|
})(WSF_VALIDATOR);
|
||||||
|
|
||||||
WSF_MIN_VALIDATOR = (function(_super) {
|
WSF_MIN_VALIDATOR = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_MIN_VALIDATOR, _super);
|
__extends(WSF_MIN_VALIDATOR, _super);
|
||||||
|
|
||||||
@@ -224,9 +223,9 @@
|
|||||||
|
|
||||||
return WSF_MIN_VALIDATOR;
|
return WSF_MIN_VALIDATOR;
|
||||||
|
|
||||||
})(WSF_VALIDATOR);
|
})(WSF_VALIDATOR);
|
||||||
|
|
||||||
WSF_MAX_VALIDATOR = (function(_super) {
|
WSF_MAX_VALIDATOR = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_MAX_VALIDATOR, _super);
|
__extends(WSF_MAX_VALIDATOR, _super);
|
||||||
|
|
||||||
@@ -242,9 +241,9 @@
|
|||||||
|
|
||||||
return WSF_MAX_VALIDATOR;
|
return WSF_MAX_VALIDATOR;
|
||||||
|
|
||||||
})(WSF_VALIDATOR);
|
})(WSF_VALIDATOR);
|
||||||
|
|
||||||
WSF_CONTROL = (function() {
|
WSF_CONTROL = (function() {
|
||||||
|
|
||||||
WSF_CONTROL.prototype.requirements = [];
|
WSF_CONTROL.prototype.requirements = [];
|
||||||
|
|
||||||
@@ -440,9 +439,9 @@
|
|||||||
|
|
||||||
return WSF_CONTROL;
|
return WSF_CONTROL;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
WSF_PAGE_CONTROL = (function(_super) {
|
WSF_PAGE_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_PAGE_CONTROL, _super);
|
__extends(WSF_PAGE_CONTROL, _super);
|
||||||
|
|
||||||
@@ -485,9 +484,9 @@
|
|||||||
|
|
||||||
return WSF_PAGE_CONTROL;
|
return WSF_PAGE_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_SLIDER_CONTROL = (function(_super) {
|
WSF_SLIDER_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_SLIDER_CONTROL, _super);
|
__extends(WSF_SLIDER_CONTROL, _super);
|
||||||
|
|
||||||
@@ -508,9 +507,9 @@
|
|||||||
|
|
||||||
return WSF_SLIDER_CONTROL;
|
return WSF_SLIDER_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_DROPDOWN_CONTROL = (function(_super) {
|
WSF_DROPDOWN_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_DROPDOWN_CONTROL, _super);
|
__extends(WSF_DROPDOWN_CONTROL, _super);
|
||||||
|
|
||||||
@@ -522,11 +521,11 @@
|
|||||||
|
|
||||||
return WSF_DROPDOWN_CONTROL;
|
return WSF_DROPDOWN_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
controls = {};
|
controls = {};
|
||||||
|
|
||||||
WSF_BUTTON_CONTROL = (function(_super) {
|
WSF_BUTTON_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_BUTTON_CONTROL, _super);
|
__extends(WSF_BUTTON_CONTROL, _super);
|
||||||
|
|
||||||
@@ -563,9 +562,9 @@
|
|||||||
|
|
||||||
return WSF_BUTTON_CONTROL;
|
return WSF_BUTTON_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_INPUT_CONTROL = (function(_super) {
|
WSF_INPUT_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_INPUT_CONTROL, _super);
|
__extends(WSF_INPUT_CONTROL, _super);
|
||||||
|
|
||||||
@@ -607,9 +606,9 @@
|
|||||||
|
|
||||||
return WSF_INPUT_CONTROL;
|
return WSF_INPUT_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_FILE_CONTROL = (function(_super) {
|
WSF_FILE_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_FILE_CONTROL, _super);
|
__extends(WSF_FILE_CONTROL, _super);
|
||||||
|
|
||||||
@@ -755,9 +754,9 @@
|
|||||||
|
|
||||||
return WSF_FILE_CONTROL;
|
return WSF_FILE_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_PASSWORD_CONTROL = (function(_super) {
|
WSF_PASSWORD_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_PASSWORD_CONTROL, _super);
|
__extends(WSF_PASSWORD_CONTROL, _super);
|
||||||
|
|
||||||
@@ -767,9 +766,9 @@
|
|||||||
|
|
||||||
return WSF_PASSWORD_CONTROL;
|
return WSF_PASSWORD_CONTROL;
|
||||||
|
|
||||||
})(WSF_INPUT_CONTROL);
|
})(WSF_INPUT_CONTROL);
|
||||||
|
|
||||||
WSF_NAVLIST_ITEM_CONTROL = (function(_super) {
|
WSF_NAVLIST_ITEM_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_NAVLIST_ITEM_CONTROL, _super);
|
__extends(WSF_NAVLIST_ITEM_CONTROL, _super);
|
||||||
|
|
||||||
@@ -791,9 +790,9 @@
|
|||||||
|
|
||||||
return WSF_NAVLIST_ITEM_CONTROL;
|
return WSF_NAVLIST_ITEM_CONTROL;
|
||||||
|
|
||||||
})(WSF_BUTTON_CONTROL);
|
})(WSF_BUTTON_CONTROL);
|
||||||
|
|
||||||
WSF_TEXTAREA_CONTROL = (function(_super) {
|
WSF_TEXTAREA_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_TEXTAREA_CONTROL, _super);
|
__extends(WSF_TEXTAREA_CONTROL, _super);
|
||||||
|
|
||||||
@@ -803,9 +802,9 @@
|
|||||||
|
|
||||||
return WSF_TEXTAREA_CONTROL;
|
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);
|
__extends(WSF_CODEVIEW_CONTROL, _super);
|
||||||
|
|
||||||
@@ -833,9 +832,9 @@
|
|||||||
|
|
||||||
return WSF_CODEVIEW_CONTROL;
|
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);
|
__extends(WSF_AUTOCOMPLETE_CONTROL, _super);
|
||||||
|
|
||||||
@@ -882,9 +881,9 @@
|
|||||||
|
|
||||||
return WSF_AUTOCOMPLETE_CONTROL;
|
return WSF_AUTOCOMPLETE_CONTROL;
|
||||||
|
|
||||||
})(WSF_INPUT_CONTROL);
|
})(WSF_INPUT_CONTROL);
|
||||||
|
|
||||||
WSF_COUNTRY_CHOOSER_CONTROL = (function(_super) {
|
WSF_COUNTRY_CHOOSER_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_COUNTRY_CHOOSER_CONTROL, _super);
|
__extends(WSF_COUNTRY_CHOOSER_CONTROL, _super);
|
||||||
|
|
||||||
@@ -892,13 +891,13 @@
|
|||||||
return WSF_COUNTRY_CHOOSER_CONTROL.__super__.constructor.apply(this, arguments);
|
return WSF_COUNTRY_CHOOSER_CONTROL.__super__.constructor.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
WSF_COUNTRY_CHOOSER_CONTROL.prototype.requirements = ['assets/bootstrap-formhelpers-countries.js', 'assets/bootstrap-formhelpers-countries-en-US.js', 'assets/bootstrap-formhelpers-selectbox.js'];
|
WSF_COUNTRY_CHOOSER_CONTROL.prototype.requirements = ['assets/bootstrap-formhelpers-countries.js', 'assets/bootstrap-formhelpers-countries-en-US.js', 'assets/bootstrap-formhelpers-selectbox.js', 'assets/bootstrap-formhelpers-countries.css', 'assets/bootstrap-formhelpers.css'];
|
||||||
|
|
||||||
return WSF_COUNTRY_CHOOSER_CONTROL;
|
return WSF_COUNTRY_CHOOSER_CONTROL;
|
||||||
|
|
||||||
})(WSF_INPUT_CONTROL);
|
})(WSF_INPUT_CONTROL);
|
||||||
|
|
||||||
WSF_DATETIME_PICKER_CONTROL = (function(_super) {
|
WSF_DATETIME_PICKER_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_DATETIME_PICKER_CONTROL, _super);
|
__extends(WSF_DATETIME_PICKER_CONTROL, _super);
|
||||||
|
|
||||||
@@ -912,20 +911,19 @@
|
|||||||
var self;
|
var self;
|
||||||
WSF_DATETIME_PICKER_CONTROL.__super__.attach_events.apply(this, arguments);
|
WSF_DATETIME_PICKER_CONTROL.__super__.attach_events.apply(this, arguments);
|
||||||
self = this;
|
self = this;
|
||||||
return console.log(this.$el);
|
console.log(this.$el);
|
||||||
};
|
return this.$el.datetimepicker({
|
||||||
|
|
||||||
return WSF_DATETIME_PICKER_CONTROL;
|
|
||||||
|
|
||||||
})(WSF_INPUT_CONTROL);
|
|
||||||
|
|
||||||
this.$el.datetimepicker({
|
|
||||||
language: 'en',
|
language: 'en',
|
||||||
pick12HourFormat: false,
|
pick12HourFormat: false,
|
||||||
startDate: new Date()
|
startDate: new Date()
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
WSF_CHECKBOX_CONTROL = (function(_super) {
|
return WSF_DATETIME_PICKER_CONTROL;
|
||||||
|
|
||||||
|
})(WSF_INPUT_CONTROL);
|
||||||
|
|
||||||
|
WSF_CHECKBOX_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_CHECKBOX_CONTROL, _super);
|
__extends(WSF_CHECKBOX_CONTROL, _super);
|
||||||
|
|
||||||
@@ -964,9 +962,9 @@
|
|||||||
|
|
||||||
return WSF_CHECKBOX_CONTROL;
|
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);
|
__extends(WSF_FORM_ELEMENT_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1035,9 +1033,9 @@
|
|||||||
|
|
||||||
return WSF_FORM_ELEMENT_CONTROL;
|
return WSF_FORM_ELEMENT_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_HTML_CONTROL = (function(_super) {
|
WSF_HTML_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_HTML_CONTROL, _super);
|
__extends(WSF_HTML_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1058,9 +1056,9 @@
|
|||||||
|
|
||||||
return WSF_HTML_CONTROL;
|
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);
|
__extends(WSF_CHECKBOX_LIST_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1097,9 +1095,9 @@
|
|||||||
|
|
||||||
return WSF_CHECKBOX_LIST_CONTROL;
|
return WSF_CHECKBOX_LIST_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_PROGRESS_CONTROL = (function(_super) {
|
WSF_PROGRESS_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_PROGRESS_CONTROL, _super);
|
__extends(WSF_PROGRESS_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1135,9 +1133,9 @@
|
|||||||
|
|
||||||
return WSF_PROGRESS_CONTROL;
|
return WSF_PROGRESS_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_PAGINATION_CONTROL = (function(_super) {
|
WSF_PAGINATION_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_PAGINATION_CONTROL, _super);
|
__extends(WSF_PAGINATION_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1174,9 +1172,9 @@
|
|||||||
|
|
||||||
return WSF_PAGINATION_CONTROL;
|
return WSF_PAGINATION_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_GRID_CONTROL = (function(_super) {
|
WSF_GRID_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_GRID_CONTROL, _super);
|
__extends(WSF_GRID_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1201,9 +1199,9 @@
|
|||||||
|
|
||||||
return WSF_GRID_CONTROL;
|
return WSF_GRID_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
WSF_REPEATER_CONTROL = (function(_super) {
|
WSF_REPEATER_CONTROL = (function(_super) {
|
||||||
|
|
||||||
__extends(WSF_REPEATER_CONTROL, _super);
|
__extends(WSF_REPEATER_CONTROL, _super);
|
||||||
|
|
||||||
@@ -1229,17 +1227,17 @@
|
|||||||
|
|
||||||
return WSF_REPEATER_CONTROL;
|
return WSF_REPEATER_CONTROL;
|
||||||
|
|
||||||
})(WSF_CONTROL);
|
})(WSF_CONTROL);
|
||||||
|
|
||||||
redirect = function(action) {
|
redirect = function(action) {
|
||||||
return document.location.href = action.url;
|
return document.location.href = action.url;
|
||||||
};
|
};
|
||||||
|
|
||||||
show_alert = function(action) {
|
show_alert = function(action) {
|
||||||
return alert(action.message);
|
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;
|
var cssclass, modal;
|
||||||
cssclass = "";
|
cssclass = "";
|
||||||
if (action.type === "start_modal_big") {
|
if (action.type === "start_modal_big") {
|
||||||
@@ -1258,8 +1256,6 @@
|
|||||||
}).done(function(data) {
|
}).done(function(data) {
|
||||||
return modal.find('.modal-body').append(data);
|
return modal.find('.modal-body').append(data);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
start_modal_big = start_modal;
|
start_modal_big = start_modal;
|
||||||
|
|
||||||
}).call(this);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user