diff --git a/assets/js/build/init_create_worksell.js b/assets/js/build/init_create_worksell.js index 8257781..093d798 100644 --- a/assets/js/build/init_create_worksell.js +++ b/assets/js/build/init_create_worksell.js @@ -1783,6 +1783,7 @@ this.$buttonCreate.on("click", this._onButtonCreate.bind(self)); this._fillOptionsData(); this._bindEvents(); + this.$searchInput.attr("placeholder", 'Создать/Выбрать объект'); } }, { key: 'getData', diff --git a/assets/js/build/init_customer_project_create.js b/assets/js/build/init_customer_project_create.js index 65b2894..136190a 100644 --- a/assets/js/build/init_customer_project_create.js +++ b/assets/js/build/init_customer_project_create.js @@ -175,7 +175,7 @@ sb_realty_top.hide(); } else { var id = window.location.hash.replace("#", ""); - sb_realty_top.setElementById(id); + if (id) sb_realty_top.setElementById(id); } }); select_realty.on("add", function (args) { @@ -1823,6 +1823,7 @@ this.$buttonCreate.on("click", this._onButtonCreate.bind(self)); this._fillOptionsData(); this._bindEvents(); + this.$searchInput.attr("placeholder", 'Создать/Выбрать объект'); } }, { key: 'getData', diff --git a/assets/js/src/init_customer_project_create.js b/assets/js/src/init_customer_project_create.js index a4cfd7f..20afee6 100644 --- a/assets/js/src/init_customer_project_create.js +++ b/assets/js/src/init_customer_project_create.js @@ -114,7 +114,7 @@ $(function () { sb_realty_top.hide() }else{ let id = window.location.hash.replace("#", ""); - sb_realty_top.setElementById(id); + if (id) sb_realty_top.setElementById(id); } }); select_realty.on("add", (args)=> { diff --git a/assets/lib/proekton-components/js/src/SelectOrCreate.js b/assets/lib/proekton-components/js/src/SelectOrCreate.js index 66f3285..ea8d094 100644 --- a/assets/lib/proekton-components/js/src/SelectOrCreate.js +++ b/assets/lib/proekton-components/js/src/SelectOrCreate.js @@ -44,7 +44,6 @@ export default class SelectOrCreate extends AbsBaseSelect { setLinkBoxes(boxes = []) { this.boxes = boxes; } - _buildComponents(data) { super._buildComponents(data); const self = this; @@ -58,6 +57,7 @@ export default class SelectOrCreate extends AbsBaseSelect { this.$buttonCreate.on("click", this._onButtonCreate.bind(self)); this._fillOptionsData(); this._bindEvents(); + this.$searchInput.attr("placeholder", 'Создать/Выбрать объект') } getData(url, data = {}) {