瀏覽代碼

Fix sorting for active and tla on domain-admins

goodygh 2 年之前
父節點
當前提交
d9dfe15253
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      data/web/js/site/admin.js

+ 4 - 4
data/web/js/site/admin.js

@@ -117,8 +117,8 @@ jQuery(function($){
           data: 'tfa_active',
           data: 'tfa_active',
           defaultContent: '',
           defaultContent: '',
             render: function (data, type) {
             render: function (data, type) {
-            if(data == 1) return '<i class="bi bi-check-lg"></i>';
-            else return '<i class="bi bi-x-lg"></i>';
+            if(data == 1) return '<i class="bi bi-check-lg"><span class="sorting-value">1</span></i>';
+            else return '<i class="bi bi-x-lg"><span class="sorting-value">0</span></i>';
           }
           }
         },
         },
         {
         {
@@ -126,8 +126,8 @@ jQuery(function($){
           data: 'active',
           data: 'active',
           defaultContent: '',
           defaultContent: '',
           render: function (data, type) {
           render: function (data, type) {
-            if(data == 1) return '<i class="bi bi-check-lg"></i>';
-            else return '<i class="bi bi-x-lg"></i>';
+            if(data == 1) return '<i class="bi bi-check-lg"><span class="sorting-value">1</span></i>';
+            else return '<i class="bi bi-x-lg"><span class="sorting-value">0</span></i>';
           }
           }
         },
         },
         {
         {