diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index 0902c3e731ac8e039801658001d46da92469bef9..c7c9b8b281f8d6cdacda1fbcf3840bb0a9cf801b 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) });