From 8689f37a68b528874f3448265883afc917db3565 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Tue, 31 Mar 2015 08:26:21 +0000 Subject: [PATCH] Only check emptyness of attribute rule when actually enabled. Fixes #417 --- www/resources/scripts/arp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/resources/scripts/arp.js b/www/resources/scripts/arp.js index 879f61ac..8974a0b0 100644 --- a/www/resources/scripts/arp.js +++ b/www/resources/scripts/arp.js @@ -73,7 +73,7 @@ $(function () { validateArp: function ($input, val) { var message; var value = val || $input.val(); - if (!value || value.trim() === '') { + if ($input.prop("checked") && (!value || value.trim() === '')) { message = this.translations.emptyAttribute; } else { $input.parents('td').find('input[type=hidden]').each(function (i) {