From c37414045b14ad415bb09025bfcc80ecff2c7b6e Mon Sep 17 00:00:00 2001 From: BaiJiangjie Date: Tue, 24 Apr 2018 15:16:05 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=AF=BC=E5=87=BA=EF=BC=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=85=A8=E9=83=A8=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/templates/users/user_list.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index 0902c3e73..c7c9b8b28 100644 --- a/apps/users/templates/users/user_list.html +++ b/apps/users/templates/users/user_list.html @@ -107,6 +107,9 @@ $(document).ready(function(){ $('.btn_export').click(function () { var users = []; var rows = table.rows('.selected').data(); + if(rows.length===0){ + rows = table.rows().data(); + } $.each(rows, function (index, obj) { users.push(obj.id) });