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 4.0.7 - Released 10/19/2011
[extjs.git]
/
examples
/
ux
/
form
/
MultiSelect.js
diff --git
a/examples/ux/form/MultiSelect.js
b/examples/ux/form/MultiSelect.js
index
ebfb6f9
..
b425289
100644
(file)
--- a/
examples/ux/form/MultiSelect.js
+++ b/
examples/ux/form/MultiSelect.js
@@
-163,7
+163,7
@@
Ext.define('Ext.ux.form.MultiSelect', {
boundList = me.boundList;
if (oldStore && !initial && oldStore !== store && oldStore.autoDestroy) {
boundList = me.boundList;
if (oldStore && !initial && oldStore !== store && oldStore.autoDestroy) {
- oldStore.destroy();
+ oldStore.destroy
Store
();
}
me.store = store ? Ext.data.StoreManager.lookup(store) : null;
}
me.store = store ? Ext.data.StoreManager.lookup(store) : null;
@@
-181,10
+181,12
@@
Ext.define('Ext.ux.form.MultiSelect', {
me.callParent(arguments);
boundList = me.boundList = Ext.create('Ext.view.BoundList', {
me.callParent(arguments);
boundList = me.boundList = Ext.create('Ext.view.BoundList', {
+ deferInitialRefresh: false,
multiSelect: true,
store: me.store,
displayField: me.displayField,
multiSelect: true,
store: me.store,
displayField: me.displayField,
- border: false
+ border: false,
+ disabled: me.disabled
});
selModel = boundList.getSelectionModel();
});
selModel = boundList.getSelectionModel();
@@
-362,15
+364,23
@@
Ext.define('Ext.ux.form.MultiSelect', {
},
onDisable: function() {
},
onDisable: function() {
- this.callParent();
- this.disabled = true;
- this.updateReadOnly();
+ var me = this;
+
+ me.callParent();
+ me.updateReadOnly();
+ if (me.boundList) {
+ me.boundList.disable();
+ }
},
onEnable: function() {
},
onEnable: function() {
- this.callParent();
- this.disabled = false;
- this.updateReadOnly();
+ var me = this;
+
+ me.callParent();
+ me.updateReadOnly();
+ if (me.boundList) {
+ me.boundList.enable();
+ }
},
setReadOnly: function(readOnly) {
},
setReadOnly: function(readOnly) {