mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
copy trunk, tags
git-svn-id: http://xe-core.googlecode.com/svn/trunk@7335 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
180908fc32
4 changed files with 14 additions and 13 deletions
|
|
@ -57,17 +57,17 @@ describe('Validator', {
|
||||||
value_of(validate()).should_be_true();
|
value_of(validate()).should_be_true();
|
||||||
},
|
},
|
||||||
'validate with length' : function() {
|
'validate with length' : function() {
|
||||||
v.cast('ADD_FILTER', ['minlen', {
|
v.cast('ADD_FILTER', ['minlength', {
|
||||||
'text' : {required:true, minlen:5}
|
'text' : {required:true, minlength:5}
|
||||||
}]);
|
}]);
|
||||||
v.cast('ADD_FILTER', ['maxlen', {
|
v.cast('ADD_FILTER', ['maxlength', {
|
||||||
'text' : {required:true, maxlen:10}
|
'text' : {required:true, maxlength:10}
|
||||||
}]);
|
}]);
|
||||||
v.cast('ADD_FILTER', ['minmaxlen', {
|
v.cast('ADD_FILTER', ['minmaxlength', {
|
||||||
'text' : {required:true, minlen:5, maxlen:10}
|
'text' : {required:true, minlength:5, maxlength:10}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
set_filter('minlen');
|
set_filter('minlength');
|
||||||
|
|
||||||
set_value('1');
|
set_value('1');
|
||||||
value_of(validate()).should_be_false();
|
value_of(validate()).should_be_false();
|
||||||
|
|
@ -75,7 +75,7 @@ describe('Validator', {
|
||||||
set_value('12345');
|
set_value('12345');
|
||||||
value_of(validate()).should_be_true();
|
value_of(validate()).should_be_true();
|
||||||
|
|
||||||
set_filter('maxlen');
|
set_filter('maxlength');
|
||||||
|
|
||||||
set_value('12345678901');
|
set_value('12345678901');
|
||||||
value_of(validate()).should_be_false();
|
value_of(validate()).should_be_false();
|
||||||
|
|
@ -83,7 +83,7 @@ describe('Validator', {
|
||||||
set_value('1');
|
set_value('1');
|
||||||
value_of(validate()).should_be_true();
|
value_of(validate()).should_be_true();
|
||||||
|
|
||||||
set_filter('minmaxlen');
|
set_filter('minmaxlength');
|
||||||
|
|
||||||
set_value('1');
|
set_value('1');
|
||||||
value_of(validate()).should_be_false();
|
value_of(validate()).should_be_false();
|
||||||
|
|
|
||||||
|
|
@ -98,8 +98,8 @@ var Validator = xe.createApp('Validator', {
|
||||||
if (!_el) return true;
|
if (!_el) return true;
|
||||||
|
|
||||||
var el = $(_el), val = $.trim(get_value(el));
|
var el = $(_el), val = $.trim(get_value(el));
|
||||||
var minlen = parseInt(this.minlen) || 0;
|
var minlen = parseInt(this.minlength) || 0;
|
||||||
var maxlen = parseInt(this.maxlen) || 0;
|
var maxlen = parseInt(this.maxlength) || 0;
|
||||||
var rule = (this.rule || '').split(',');
|
var rule = (this.rule || '').split(',');
|
||||||
|
|
||||||
if (this.required && !val) return (result = (!!self.cast('ALERT', [form, name, 'isnull']) && false));
|
if (this.required && !val) return (result = (!!self.cast('ALERT', [form, name, 'isnull']) && false));
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* @brief XE의 전체 버전 표기
|
* @brief XE의 전체 버전 표기
|
||||||
* 이 파일의 수정이 없더라도 공식 릴리즈시에 수정되어 함께 배포되어야 함
|
* 이 파일의 수정이 없더라도 공식 릴리즈시에 수정되어 함께 배포되어야 함
|
||||||
**/
|
**/
|
||||||
define('__ZBXE_VERSION__', '1.4.0.8');
|
define('__ZBXE_VERSION__', '1.4.0.9');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief zbXE가 설치된 장소의 base path를 구함
|
* @brief zbXE가 설치된 장소의 base path를 구함
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@
|
||||||
<condition operation="more" column="comments_list.arrange" default="0" pipe="and" />
|
<condition operation="more" column="comments_list.arrange" default="0" pipe="and" />
|
||||||
</conditions>
|
</conditions>
|
||||||
<navigation>
|
<navigation>
|
||||||
<index var="list_order" default="list_order" order="desc" />
|
<index var="list_order" default="comments_list.head" order="asc" />
|
||||||
|
<index var="list_order" default="comments_list.arrange" order="asc" />
|
||||||
<list_count var="list_count" default="list_count" />
|
<list_count var="list_count" default="list_count" />
|
||||||
<page_count var="page_count" default="10" />
|
<page_count var="page_count" default="10" />
|
||||||
<page var="page" default="1" />
|
<page var="page" default="1" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue