From c60da11fe26aac1f91c31b667d68a5e41185ee97 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Mon, 23 Nov 2020 11:21:15 +0100 Subject: [PATCH] fix: package/quiqqer/products/bin/controls/categories/Select - consider max 1 and empty value --- bin/controls/categories/Select.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/controls/categories/Select.js b/bin/controls/categories/Select.js index 4190b13e..fb9e66c7 100644 --- a/bin/controls/categories/Select.js +++ b/bin/controls/categories/Select.js @@ -182,6 +182,7 @@ define('package/quiqqer/products/bin/controls/categories/Select', [ this.$SearchButton = new QUIButton({ icon : 'fa fa-search', + name : 'search', styles: { width: 50 }, @@ -212,9 +213,11 @@ define('package/quiqqer/products/bin/controls/categories/Select', [ this.$CreateButton = new QUIButton({ + name : 'create', icon : 'fa fa-sitemap', styles: { - width: 50 + display: 'none', + width : 50 }, alt : QUILocale.get(lg, 'control.select.category.create'), events: { @@ -267,6 +270,7 @@ define('package/quiqqer/products/bin/controls/categories/Select', [ } if (parseInt(this.getAttribute('max')) === 1) { + this.$CreateButton.getElm().setStyle('display', null); this.$Search.setStyle('display', 'none'); this.$SearchIcon.setStyle('display', 'none'); this.$SearchButton.hide(); -- GitLab