rt 4.2.14 (#13852)
[freeside.git] / rt / share / html / Prefs / Quicksearch.html
index 2642aa5..920d457 100644 (file)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2015 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'),
@@ -94,10 +95,10 @@ my @queues = grep { $right ? $_->CurrentUserHasRight($right) : 1 } @{$Queues->It
 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};
         }
     }