Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #572 from thijskh/fix-arp-checkbox
Browse files Browse the repository at this point in the history
Only check emptyness of attribute rule when actually enabled.
  • Loading branch information
Boy Baukema committed May 6, 2015
2 parents 44302de + 8689f37 commit 29ca43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/resources/scripts/arp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 29ca43c

Please sign in to comment.