From 7d8879a979d87518b260ecbcf57332666bb89ab0 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:52:43 +0100 Subject: [PATCH 1/3] deleted default query on item index --- modules/item/front/index/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/item/front/index/index.js b/modules/item/front/index/index.js index e31cbaa08a..d8d0ebbe23 100644 --- a/modules/item/front/index/index.js +++ b/modules/item/front/index/index.js @@ -18,11 +18,6 @@ class Controller { this.filter = {hasVisible: true, isActive: true}; } - $postLink() { - if (this.filter) - this.onSearch(this.filter); - } - stopEvent(event) { event.preventDefault(); event.stopImmediatePropagation(); From 7e7023c680958ccc3c1ebe78d362693a3e6e4c51 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:58:09 +0100 Subject: [PATCH 2/3] validation disabled when displaycontrols is false --- front/core/components/input-number/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/core/components/input-number/index.js b/front/core/components/input-number/index.js index 086ab78170..b5762d0cca 100644 --- a/front/core/components/input-number/index.js +++ b/front/core/components/input-number/index.js @@ -52,10 +52,11 @@ export default class InputNumber extends Textfield { } validateValue() { + console.log(this.displayControls); if ((this.validate() !== undefined && !this.validate()) || (this.max && this.value > this.max) || (this.min && this.value < this.min) || - (this.step && this.value % this.step != 0)) + (this.displayControls && (this.step && this.value % this.step != 0))) this.$element[0].querySelector('.infix').classList.add('invalid', 'validated'); From f5a95d31909360dcf73f983faee363f7f28b8a06 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:58:46 +0100 Subject: [PATCH 3/3] console log deleted --- front/core/components/input-number/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/front/core/components/input-number/index.js b/front/core/components/input-number/index.js index b5762d0cca..9c187a8151 100644 --- a/front/core/components/input-number/index.js +++ b/front/core/components/input-number/index.js @@ -52,7 +52,6 @@ export default class InputNumber extends Textfield { } validateValue() { - console.log(this.displayControls); if ((this.validate() !== undefined && !this.validate()) || (this.max && this.value > this.max) || (this.min && this.value < this.min) ||