Adds a new Select All checkbox along the top of the invoice search
results page.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
</td>
</tr></table>
</div> <!-- end search form -->
+ <div style='border-bottom:1px solid #888;'>
+ <input type='checkbox' onclick='selectSearchResults()'> [% l('Select All') %]</input>
+ </div>
<div id='acq-unified-results-no_results'>
<b>[% l('No Results') %]</b>
</div>
doAttachLi(true);
}
+allResSelected = false;
function clearSearchResTable() {
+ allResSelected = false;
while (resultsTbody.childNodes[0])
resultsTbody.removeChild(resultsTbody.childNodes[0]);
}
+function selectSearchResults() {
+ allResSelected = !allResSelected;
+ dojo.query('[name=search-results-checkbox]').forEach(
+ function(input) { input.checked = allResSelected });
+}
+
function updateTotalCost() {
var totalCost = 0;