git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.2.1 - Released 04/27/2010
[extjs.git]
/
docs
/
source
/
TextField.html
diff --git
a/docs/source/TextField.html
b/docs/source/TextField.html
index
db3d49e
..
254eaa2
100644
(file)
--- a/
docs/source/TextField.html
+++ b/
docs/source/TextField.html
@@
-7,7
+7,7
@@
</head>
<body onload="prettyPrint();">
<pre class="prettyprint lang-js">/*!
</head>
<body onload="prettyPrint();">
<pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.2.
0
+ * Ext JS Library 3.2.
1
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-448,13
+448,22
@@
var myField = new Ext.form.NumberField({
value = value || this.processValue(this.getRawValue());
value = value || this.processValue(this.getRawValue());
- if
(Ext.isFunction(this.validator))
{
+ if
(Ext.isFunction(this.validator))
{
var msg = this.validator(value);
if (msg !== true) {
errors.push(msg);
}
}
var msg = this.validator(value);
if (msg !== true) {
errors.push(msg);
}
}
+ if (value.length < 1 || value === this.emptyText) {
+ if (this.allowBlank) {
+ //if value is blank and allowBlank is true, there cannot be any additional errors
+ return errors;
+ } else {
+ errors.push(this.blankText);
+ }
+ }
+
if (!this.allowBlank && (value.length < 1 || value === this.emptyText)) { // if it's blank
errors.push(this.blankText);
}
if (!this.allowBlank && (value.length < 1 || value === this.emptyText)) { // if it's blank
errors.push(this.blankText);
}