From 3cb645e032b94a830af6f590b107ea6c12c7f796 Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Wed, 18 Apr 2018 14:17:24 +0200 Subject: [PATCH] fix: the active status was not returned correctly --- qui/controls/buttons/Button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qui/controls/buttons/Button.js b/qui/controls/buttons/Button.js index 23828385..232bce3f 100644 --- a/qui/controls/buttons/Button.js +++ b/qui/controls/buttons/Button.js @@ -364,7 +364,7 @@ define('qui/controls/buttons/Button', needle, function (Control, Utils, NoSelect return false; } - return this.getElm().get('data-status') === 1; + return parseInt(this.getElm().get('data-status')) === 1; }, /** @@ -411,7 +411,7 @@ define('qui/controls/buttons/Button', needle, function (Control, Utils, NoSelect return false; } - return this.getElm().get('data-status') === -1; + return parseInt(this.getElm().get('data-status')) === -1; }, /** -- GitLab