Index: ssts-web/src/main/webapp/ext/js/multiSelectCombo.js =================================================================== diff -u -r33823 -r33924 --- ssts-web/src/main/webapp/ext/js/multiSelectCombo.js (.../multiSelectCombo.js) (revision 33823) +++ ssts-web/src/main/webapp/ext/js/multiSelectCombo.js (.../multiSelectCombo.js) (revision 33924) @@ -18,6 +18,7 @@ multi: true, separator: ',', showRawValue:this.showRawValue ? this.showRawValue : true, + multiSelectIsClear:this.multiSelectIsClear ? this.multiSelectIsClear : true, initComponent: function () { if (!this.tpl) @@ -156,13 +157,13 @@ } }, this); - this.setValue(va.join(this.separator)); + this.setValue(va.join(this.separator),true); this.store.clearFilter(); }, onSelect: function (record, index) { if (this.fireEvent('beforeselect', this, record, index) !== false) - { + { record.set(this.checkField, !record.get(this.checkField)); var va = []; var snapshot = this.store.snapshot || this.store.data; @@ -201,7 +202,7 @@ this.fireEvent('select', this, record, index); } }, - setValue: function (v) + setValue: function (v,clear) { if (v) { @@ -239,7 +240,13 @@ } else { - this.clearValue(); + if(this.multiSelectIsClear){ + this.clearValue(); + }else { + if(clear){ + this.clearValue(); + } + } } }, select: function (v)