From 1bba00412ab3c7c8a3eb89dfaeed24250e3aa175 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 19 Nov 2019 11:25:36 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9user=20list=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AD=97=E6=AE=B5=E5=AE=BD=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/templates/assets/asset_list.html | 4 ++-- apps/users/templates/users/user_list.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/assets/templates/assets/asset_list.html b/apps/assets/templates/assets/asset_list.html index 486433ad9..d52532848 100644 --- a/apps/assets/templates/assets/asset_list.html +++ b/apps/assets/templates/assets/asset_list.html @@ -151,9 +151,9 @@ function initTable() { }}, {targets: 4, createdCell: function (td, cellData, rowData) { var innerHtml = ""; - if (cellData.status == 1) { + if (cellData.status === 1) { innerHtml = '' - } else if (cellData.status == 0) { + } else if (cellData.status === 0) { innerHtml = '' } else { innerHtml = '' diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index 345c449d4..265d4a4db 100644 --- a/apps/users/templates/users/user_list.html +++ b/apps/users/templates/users/user_list.html @@ -124,8 +124,8 @@ function initTable() { {data: "role"}, {data: "groups_display", orderable: false}, {data: "source"}, - {data: "is_valid", orderable: false}, - {data: "id", orderable: false} + {data: "is_valid", orderable: false, width: "50px"}, + {data: "id", orderable: false, width: "100px"} ], op_html: $('#actions').html() };