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

4
bi/widget.js

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

4
docs/widget.js

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

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

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

Loading…
Cancel
Save