From dad21cadb3e494acb6887dbf7ca32e8318f7204f Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 15 Jan 2018 18:32:07 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20check=20all=20=E5=8F=AA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/static/js/jumpserver.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/static/js/jumpserver.js b/apps/static/js/jumpserver.js index 7b52c2b32..aca70a5a0 100644 --- a/apps/static/js/jumpserver.js +++ b/apps/static/js/jumpserver.js @@ -319,11 +319,11 @@ jumpserver.initDataTable = function (options) { if (!jumpserver.checked) { $(this).closest('table').find('.ipt_check').prop('checked', true); jumpserver.checked = true; - table.rows({search:'applied'}).select(); + table.rows({search:'applied', page:'current'}).select(); } else { $(this).closest('table').find('.ipt_check').prop('checked', false); jumpserver.checked = false; - table.rows({search:'applied'}).deselect(); + table.rows({search:'applied', page:'current'}).deselect(); } }); @@ -438,11 +438,11 @@ jumpserver.initServerSideDataTable = function (options) { if (!jumpserver.checked) { $(this).closest('table').find('.ipt_check').prop('checked', true); jumpserver.checked = true; - table.rows({search:'applied'}).select(); + table.rows({search:'applied', page:'current'}).select(); } else { $(this).closest('table').find('.ipt_check').prop('checked', false); jumpserver.checked = false; - table.rows({search:'applied'}).deselect(); + table.rows({search:'applied', page:'current'}).deselect(); } });