This commit is contained in:
James Cole
2018-12-30 15:44:33 +01:00
parent d736ffec8e
commit 0f83582fed
4 changed files with 77 additions and 35 deletions

View File

@@ -47,4 +47,14 @@ function presentSearchResults(data) {
$('.select_all_single').unbind('change').change(function () {
countChecked();
});
// make sure select button works:
$('input[name="select_all"]').change(function () {
if (this.checked) {
checkAll();
countChecked();
} else {
uncheckAll();
countChecked();
}
});
}

View File

@@ -153,6 +153,7 @@ function countChecked() {
*/
function checkAll() {
"use strict";
console.log('Now in CheckAll((');
$('.select_all_single').prop('checked', true);
}
@@ -207,6 +208,7 @@ function stopMassSelect() {
*/
function startMassSelect() {
"use strict";
console.log('Now in startMassSelect()');
// show "select all" box in table header.
$('.select_boxes').show();