|
Lines 80-93
function showColumn(num){
Link Here
|
| 80 |
} |
80 |
} |
| 81 |
} |
81 |
} |
| 82 |
function showAllColumns(){ |
82 |
function showAllColumns(){ |
| 83 |
$("#selections").checkCheckboxes(); |
83 |
$("#selections input:checkbox").each(function(){ |
|
|
84 |
$(this).prop("checked", true); |
| 85 |
}); |
| 84 |
$("#selections span").addClass("selected"); |
86 |
$("#selections span").addClass("selected"); |
| 85 |
$("#itemst td:nth-child(3),#itemst tr th:nth-child(3)").nextAll().show(); |
87 |
$("#itemst td:nth-child(3),#itemst tr th:nth-child(3)").nextAll().show(); |
| 86 |
$.removeCookie("showColumns", { path: '/' }); |
88 |
$.removeCookie("showColumns", { path: '/' }); |
| 87 |
$("#hideall").prop("checked", false).parent().removeClass("selected"); |
89 |
$("#hideall").prop("checked", false).parent().removeClass("selected"); |
| 88 |
} |
90 |
} |
| 89 |
function hideAllColumns(){ |
91 |
function hideAllColumns(){ |
| 90 |
$("#selections").unCheckCheckboxes(); |
92 |
$("#selections input:checkbox").each(function(){ |
|
|
93 |
$(this).prop("checked", false); |
| 94 |
}); |
| 91 |
$("#selections span").removeClass("selected"); |
95 |
$("#selections span").removeClass("selected"); |
| 92 |
$("#itemst td:nth-child(3),#itemst th:nth-child(3)").nextAll().hide(); |
96 |
$("#itemst td:nth-child(3),#itemst th:nth-child(3)").nextAll().hide(); |
| 93 |
$("#hideall").prop("checked", true).parent().addClass("selected"); |
97 |
$("#hideall").prop("checked", true).parent().addClass("selected"); |
|
Lines 105-117
function hideAllColumns(){
Link Here
|
| 105 |
], |
109 |
], |
| 106 |
"bPaginate": false, |
110 |
"bPaginate": false, |
| 107 |
})); |
111 |
})); |
| 108 |
$("#selectallbutton").click(function(){ |
112 |
$("#selectallbutton").click(function(e){ |
| 109 |
$("#itemst").checkCheckboxes(); |
113 |
e.preventDefault(); |
| 110 |
return false; |
114 |
$("#itemst input:checkbox").each(function(){ |
|
|
115 |
$(this).prop("checked", true); |
| 116 |
}); |
| 111 |
}); |
117 |
}); |
| 112 |
$("#clearallbutton").click(function(){ |
118 |
$("#clearallbutton").click(function(e){ |
| 113 |
$("#itemst").unCheckCheckboxes(); |
119 |
e.preventDefault(); |
| 114 |
return false; |
120 |
$("#itemst input:checkbox").each(function(){ |
|
|
121 |
$(this).prop("checked", false); |
| 122 |
}); |
| 115 |
}); |
123 |
}); |
| 116 |
$("#clearonloanbutton").click(function(){ |
124 |
$("#clearonloanbutton").click(function(){ |
| 117 |
$("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){ |
125 |
$("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function(){ |
| 118 |
- |
|
|