Skip to content
Browse files

Some updates

  • Loading branch information...
1 parent 408ed56 commit 3267e4c2b8f52f5f68307b99f3217eb8858ab7ae @bydooweedoo bydooweedoo committed Mar 23, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/Ext.ux.AwesomeCombo.js
View
8 src/Ext.ux.AwesomeCombo.js
@@ -320,10 +320,11 @@ Ext.ux.AwesomeCombo = {
*/
uncheckRecord: function(record) {
if (this.enableMultiSelect !== true) {
- this.internal.clear();
+ this.reset();
} else {
var index = record.get(this.valueField).toString();
this.internal.removeKey(index);
+ this.setValue(this.internal.getRange());
}
},
@@ -333,14 +334,14 @@ Ext.ux.AwesomeCombo = {
*/
checkRecord: function(record) {
if (this.enableMultiSelect !== true) {
- this.internal.clear();
this.setValue(record.get(this.valueField));
} else {
var index = record.get(this.valueField).toString();
var item = {};
item[this.valueField] = record.get(this.valueField);
item[this.displayField] = record.get(this.displayField);
this.internal.add(index, item);
+ this.setValue(this.internal.getRange());
}
},
@@ -419,9 +420,12 @@ Ext.ux.AwesomeCombo = {
// private
assertValue: function() {
+ this.setValue(this.internal);
+ /*
if (this.value) {
this.setValue(this.value);
}
+ */
},
// private

0 comments on commit 3267e4c

Please sign in to comment.
Something went wrong with that request. Please try again.