Round the search time and make sure the count is shown #2453

This commit is contained in:
James Cole
2019-08-21 04:37:17 +02:00
parent c76337926b
commit 22f110df8d
6 changed files with 11 additions and 20 deletions

View File

@@ -21,6 +21,9 @@
var count = 0;
$(document).ready(function () {
updateListButtons();
});
function updateListButtons() {
// top button to select all / deselect all:
$('input[name="select-all"]').change(function () {
if (this.checked) {
@@ -46,9 +49,7 @@ $(document).ready(function () {
countChecked();
updateActionButtons();
});
});
}
/**
*

View File

@@ -42,17 +42,6 @@ function presentSearchResults(data) {
$('.search_box').find('.overlay').remove();
$('.search_results').html(data.html).show();
$('.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();
}
});
updateListButtons();
}