TPac: apply the select-all JS to holds list
authorBill Erickson <berick@esilibrary.com>
Mon, 29 Aug 2011 15:45:01 +0000 (11:45 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 29 Aug 2011 18:39:34 +0000 (14:39 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/default/opac/myopac/holds.tt2

index df5bd33..e5f5c94 100644 (file)
@@ -89,7 +89,7 @@
             border='0' width="100%">
             <tr>
                 <td width="36" align="center">
-                    <input type="checkbox" id="check_all_holds" />
+                    <input type="checkbox" onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'hold_id' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
                 </td>
                 <td width="138">
                     <span title="Click to sort"