%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
<form method="post" action="Quicksearch.html" name="Preferences">
<ul>
% for my $queue (@queues) {
-<li><input type="checkbox" class="checkbox" name="Want-<%$queue->Name%>" value="1"
+<li><input type="checkbox" class="checkbox" id="Want-<%$queue->Name%>" name="Want-<%$queue->Name%>" value="1"
% unless ($unwanted->{$queue->Name}) {
checked="checked"
% }
-/><%$queue->Name%><% $queue->Description ? ': '.$queue->Description : '' %></li>
+/>
+<label for="Want-<%$queue->Name%>"><%$queue->Name%><% $queue->Description ? ': '.$queue->Description : '' %></label>
+</li>
% }
</ul>
-
<& /Elements/Submit,
Caption => loc("Save Changes"),
Label => loc('Save'),
if ($ARGS{'Save'}) {
for my $queue (@queues) {
if ($ARGS{"Want-".$queue->Name}) {
- delete $unwanted->{$queue->Name};
- }
+ delete $unwanted->{$queue->Name};
+ }
else {
- ++$unwanted->{$queue->Name};
+ ++$unwanted->{$queue->Name};
}
}