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

pull/865/head^2
q4speed 2018-01-10 17:56:50 +08:00
parent 7f3d32a876
commit 576ddbf673
1 changed files with 2 additions and 2 deletions

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();
}
});