修复全选按钮在搜索后仍然选择全部的问题

This commit is contained in:
q4speed
2018-01-10 17:56:50 +08:00
parent 7f3d32a876
commit 576ddbf673

View File

@@ -310,11 +310,11 @@ jumpserver.initDataTable = function (options) {
if (!jumpserver.checked) {
$(this).closest('table').find('.ipt_check').prop('checked', true);
jumpserver.checked = true;
table.rows().select();
table.rows({search:'applied'}).select();
} else {
$(this).closest('table').find('.ipt_check').prop('checked', false);
jumpserver.checked = false;
table.rows().deselect();
table.rows({search:'applied'}).deselect();
}
});