|
|
|
@ -304,13 +304,16 @@ var TreeSelect = function (_AbsBaseSelect) { |
|
|
|
value: function _onclickOptionsElement(e) { |
|
|
|
value: function _onclickOptionsElement(e) { |
|
|
|
this.clearAllNext(); |
|
|
|
this.clearAllNext(); |
|
|
|
_get(TreeSelect.prototype.__proto__ || Object.getPrototypeOf(TreeSelect.prototype), '_onclickOptionsElement', this).call(this, e); |
|
|
|
_get(TreeSelect.prototype.__proto__ || Object.getPrototypeOf(TreeSelect.prototype), '_onclickOptionsElement', this).call(this, e); |
|
|
|
if (this.prevSelectBox && this.dataTree.hasChildren(this.selectedEl.id)) this.$searchInput.removeClass('active'); |
|
|
|
|
|
|
|
if (this.nextSelectBox && this.dataTree.hasChildren(this.selectedEl.id)) { |
|
|
|
if (this.nextSelectBox && this.dataTree.hasChildren(this.selectedEl.id)) { |
|
|
|
this.nextSelectBox.setParent(this.selectedEl.id); |
|
|
|
this.nextSelectBox.setParent(this.selectedEl.id); |
|
|
|
this.nextSelectBox.setHeader(this.selectedEl.value); |
|
|
|
this.nextSelectBox.setHeader(this.selectedEl.value); |
|
|
|
this.nextSelectBox.show(); |
|
|
|
this.nextSelectBox.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.prevSelectBox) this.prevSelectBox.$buttonAddOptions.hide(); |
|
|
|
if (this.prevSelectBox) { |
|
|
|
|
|
|
|
this.prevSelectBox.$buttonAddOptions.hide(); |
|
|
|
|
|
|
|
this.prevSelectBox.$searchInput.removeClass("active"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.$searchInput.addClass('active'); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
key: '_onButtonAddOptions', |
|
|
|
key: '_onButtonAddOptions', |
|
|
|
@ -516,6 +519,7 @@ var AbsBaseSelect = function () { |
|
|
|
this.$editableContainer.html(""); |
|
|
|
this.$editableContainer.html(""); |
|
|
|
this.$editableContainer.hide(); |
|
|
|
this.$editableContainer.hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.$searchInput.removeClass("active"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
key: "hide", |
|
|
|
key: "hide", |
|
|
|
@ -544,7 +548,6 @@ var AbsBaseSelect = function () { |
|
|
|
value: function setParent(parentId) { |
|
|
|
value: function setParent(parentId) { |
|
|
|
this.parentId = parentId; |
|
|
|
this.parentId = parentId; |
|
|
|
this._fillOptionsData(); |
|
|
|
this._fillOptionsData(); |
|
|
|
this.$searchInput.addClass('active'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
key: "connectSelectedContainer", |
|
|
|
key: "connectSelectedContainer", |
|
|
|
@ -747,7 +750,6 @@ var AbsBaseSelect = function () { |
|
|
|
value: function _onButtonAddOptions(e) { |
|
|
|
value: function _onButtonAddOptions(e) { |
|
|
|
this._addToSelectedContainer(this.selectedEl.id); |
|
|
|
this._addToSelectedContainer(this.selectedEl.id); |
|
|
|
this.clear(); |
|
|
|
this.clear(); |
|
|
|
this.$searchInput.removeClass('active'); |
|
|
|
|
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -793,7 +795,6 @@ var AbsBaseSelect = function () { |
|
|
|
this.$searchInput.on("click", function (e) { |
|
|
|
this.$searchInput.on("click", function (e) { |
|
|
|
self.$optionsBox.show(); |
|
|
|
self.$optionsBox.show(); |
|
|
|
self.$resultsBox.hide(); |
|
|
|
self.$resultsBox.hide(); |
|
|
|
self.$buttonAddOptions.hide(); |
|
|
|
|
|
|
|
self.$searchInput.val(""); |
|
|
|
self.$searchInput.val(""); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|