guy 8 years ago
parent
commit
ed4c8b97d7
  1. 6
      bi/widget.js
  2. 6
      docs/widget.js
  3. 6
      src/widget/multiselect/trigger/searcher.multiselect.js

6
bi/widget.js

@ -10782,7 +10782,11 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
ob || (ob = {});
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
if (BI.size(ob.assist) === 1) {
this.editor.setState(ob.assist[0] + "");
} else {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
}
} else {
if (BI.size(ob.value) === 1) {
this.editor.setState(ob.value[0] + "");

6
docs/widget.js

@ -10782,7 +10782,11 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
ob || (ob = {});
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
if (BI.size(ob.assist) === 1) {
this.editor.setState(ob.assist[0] + "");
} else {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
}
} else {
if (BI.size(ob.value) === 1) {
this.editor.setState(ob.value[0] + "");

6
src/widget/multiselect/trigger/searcher.multiselect.js

@ -102,7 +102,11 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
ob || (ob = {});
ob.value || (ob.value = []);
if (ob.type === BI.Selection.All) {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
if (BI.size(ob.assist) === 1) {
this.editor.setState(ob.assist[0] + "");
} else {
this.editor.setState(BI.size(ob.value) > 0 ? BI.Selection.Multi : BI.Selection.All);
}
} else {
if (BI.size(ob.value) === 1) {
this.editor.setState(ob.value[0] + "");

Loading…
Cancel
Save