Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / ux / form / ItemSelector.js
index eb16b5f..9e51afd 100644 (file)
@@ -99,7 +99,8 @@ Ext.define('Ext.ux.form.ItemSelector', {
                 dragGroup: ddGroup,
                 dropGroup: ddGroup,
                 flex: 1,
-                hideLabel: true
+                hideLabel: true,
+                disabled: me.disabled
             },
             fromConfig = Ext.apply({
                 listTitle: 'Available',
@@ -366,6 +367,28 @@ Ext.define('Ext.ux.form.ItemSelector', {
             });
         }
     },
+    
+    onDisable: function(){
+        this.callParent();
+        var fromField = this.fromField;
+        
+        // if we have one, we have both, they get created at the same time    
+        if (fromField) {
+            fromField.disable();
+            this.toField.disable();
+        }
+    },
+    
+    onEnable: function(){
+        this.callParent();
+        var fromField = this.fromField;
+        
+        // if we have one, we have both, they get created at the same time    
+        if (fromField) {
+            fromField.enable();
+            this.toField.enable();
+        }
+    },
 
     onDestroy: function() {
         Ext.destroyMembers(this, 'innerCt');