projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e77cf
)
Roo/form/ComboBoxArray.js
author
Edward
<edward@roojs.com>
Tue, 18 Feb 2014 08:43:58 +0000
(16:43 +0800)
committer
Edward
<edward@roojs.com>
Tue, 18 Feb 2014 08:43:58 +0000
(16:43 +0800)
Roo/form/ComboBoxArray.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBoxArray.js
b/Roo/form/ComboBoxArray.js
index
52a48df
..
2dce2a9
100644
(file)
--- a/
Roo/form/ComboBoxArray.js
+++ b/
Roo/form/ComboBoxArray.js
@@
-416,6
+416,18
@@
Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
this.el.child('img').un('click', this.remove, this);
this.el.remove();
this.cb.updateHiddenEl();
+ },
+
+ /**
+ * Validates the field value
+ * @return {Boolean} True if the value is valid, else false
+ */
+ validate : function(){
+ if(this.disabled || this.validateValue(this.processValue(this.getValue()))){
+ this.clearInvalid();
+ return true;
+ }
+ return false;
}