|
|
|
@ -44,7 +44,6 @@ export default class SelectOrCreate extends AbsBaseSelect { |
|
|
|
setLinkBoxes(boxes = []) { |
|
|
|
setLinkBoxes(boxes = []) { |
|
|
|
this.boxes = boxes; |
|
|
|
this.boxes = boxes; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_buildComponents(data) { |
|
|
|
_buildComponents(data) { |
|
|
|
super._buildComponents(data); |
|
|
|
super._buildComponents(data); |
|
|
|
const self = this; |
|
|
|
const self = this; |
|
|
|
@ -58,6 +57,7 @@ export default class SelectOrCreate extends AbsBaseSelect { |
|
|
|
this.$buttonCreate.on("click", this._onButtonCreate.bind(self)); |
|
|
|
this.$buttonCreate.on("click", this._onButtonCreate.bind(self)); |
|
|
|
this._fillOptionsData(); |
|
|
|
this._fillOptionsData(); |
|
|
|
this._bindEvents(); |
|
|
|
this._bindEvents(); |
|
|
|
|
|
|
|
this.$searchInput.attr("placeholder", 'Создать/Выбрать объект') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
getData(url, data = {}) { |
|
|
|
getData(url, data = {}) { |
|
|
|
|