projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27960b7
)
Roo/form/ComboNested.js
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Feb 2020 06:46:16 +0000
(14:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Feb 2020 06:46:16 +0000
(14:46 +0800)
Roo/form/ComboNested.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboNested.js
b/Roo/form/ComboNested.js
index
ad5213d
..
b0bfe41
100644
(file)
--- a/
Roo/form/ComboNested.js
+++ b/
Roo/form/ComboNested.js
@@
-315,4
+315,26
@@
Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
Roo.form.ComboBox.superclass.setValue.call(this, text);
this.value = v;
},
+
+
+ // private
+ findRecord : function(prop, value)
+ {
+
+
+ var record;
+ if(this.store.getCount() > 0){
+ this.store.each(function(r){
+ if(r.data[prop] == value){
+ record = r;
+ return false;
+ }
+
+
+ return true;
+ });
+ }
+ return record;
+ },
+
});
\ No newline at end of file