removed .warning from selected $rows as it interferes with .table-select-all

This commit is contained in:
Richard Schreiber
2021-02-22 17:46:04 +01:00
parent 88bf31bd7a
commit 4203087eff

View File

@@ -776,14 +776,14 @@ $(function () {
var debounceUpdate;
$checkboxes.change(function() {
$(this).closest("tr").toggleClass("warning", this.checked);
//$(this).closest("tr").toggleClass("warning", this.checked);
// when changing the $toggles checked-property, lots of change events
// get triggered => debounce
if (debounceUpdate) window.clearTimeout(debounceUpdate);
debounceUpdate = window.setTimeout(update, 10);
});
$toggle.change(function (ev) {
if (!$toggle.prop("indeterminate")) $checkboxes.prop("checked", this.checked).trigger("change");
if (!this.indeterminate) $checkboxes.prop("checked", this.checked);//.trigger("change");
$selectAll.toggleClass("hidden", !this.checked).prop("hidden", !this.checked);
if (!this.checked) $selectAll.find("input").prop("checked", false);
});