NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[BS5] datatables add responsivePrio and adjust className

4ce05d4d
FreddleSpl0it <[email protected]> 4 years, 2 months ago
data/web/js/site/admin.js      |  14 ++--
 data/web/js/site/mailbox.js    | 147 +++++++++++++++++++++++++++--------------
 data/web/js/site/quarantine.js |   2 +-
 data/web/js/site/user.js       |   6 +-
 4 files changed, 109 insertions(+), 60 deletions(-)

Diff

diff --git a/data/web/js/site/admin.js b/data/web/js/site/admin.js
index f18de2ee..b24fc954 100644
--- a/data/web/js/site/admin.js
+++ b/data/web/js/site/admin.js
@@ -119,7 +119,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ],
       initComplete: function(settings, json){
@@ -174,7 +174,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
@@ -230,7 +230,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
@@ -278,7 +278,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
@@ -334,7 +334,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
@@ -390,7 +390,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
@@ -457,7 +457,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js
index 068c7242..de86e6f9 100644
--- a/data/web/js/site/mailbox.js
+++ b/data/web/js/site/mailbox.js
@@ -288,18 +288,21 @@ jQuery(function($){
           data: null,
           searchable: false,
           orderable: false,
-          defaultContent: ''
+          defaultContent: '',
+          responsivePriority: 1
         },
         {
           title: '',
           data: 'chkbox',
           searchable: false,
           orderable: false,
-          defaultContent: ''
+          defaultContent: '',
+          responsivePriority: 2
         },
         {
           title: lang.domain,
-          data: 'domain_name'
+          data: 'domain_name',
+          responsivePriority: 3
         },
         {
           title: lang.aliases,
@@ -307,7 +310,8 @@ jQuery(function($){
         },
         {
           title: lang.mailboxes,
-          data: 'mboxes_in_domain'
+          data: 'mboxes_in_domain',
+          responsivePriority: 4
         },
         {
           title: lang.domain_quota,
@@ -351,7 +355,8 @@ jQuery(function($){
         {
           title: lang.action,
           data: 'action',
-          className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+          className: 'text-md-end dt-sm-head-hidden dt-body-right',
+          responsivePriority: 5
         },
       ]
     });
@@ -445,18 +450,21 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: lang.username,
-            data: 'username'
+            data: 'username',
+            responsivePriority: 3
           },
           {
             title: lang.fname,
@@ -469,6 +477,7 @@ jQuery(function($){
           {
             title: lang.domain_quota,
             data: 'quota',
+            responsivePriority: 4,
             render: function (data, type) {
               data = data.split("/");
               var of_q = (data[1] == 0 ? "∞" : humanFileSize(data[1]));
@@ -529,7 +538,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -569,18 +579,21 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: lang.description,
-            data: 'description'
+            data: 'description',
+            responsivePriority: 3
           },
           {
             title: lang.alias,
@@ -592,7 +605,8 @@ jQuery(function($){
           },
           {
             title: lang.domain,
-            data: 'domain'
+            data: 'domain',
+            responsivePriority: 4
           },
           {
             title: lang.multiple_bookings,
@@ -608,7 +622,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -647,18 +662,21 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.bcc_type,
@@ -674,7 +692,8 @@ jQuery(function($){
           },
           {
             title: lang.domain,
-            data: 'domain'
+            data: 'domain',
+            responsivePriority: 4
           },
           {
             title: lang.active,
@@ -686,7 +705,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -722,18 +742,21 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.recipient_map_old,
@@ -753,7 +776,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 4
           },
       ]
     });
@@ -794,18 +818,21 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.tls_map_dest,
@@ -821,7 +848,8 @@ jQuery(function($){
           },
           {
             title: lang.domain,
-            data: 'domain'
+            data: 'domain',
+            responsivePriority: 4
           },
           {
             title: lang.active,
@@ -833,7 +861,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -896,22 +925,26 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.alias,
-            data: 'address'
+            data: 'address',
+            responsivePriority: 4
           },
           {
             title: lang.target_address,
@@ -947,7 +980,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -985,22 +1019,26 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: lang.alias,
-            data: 'alias_domain'
+            data: 'alias_domain',
+            responsivePriority: 3
           },
           {
             title: lang.target_domain,
-            data: 'target_domain'
+            data: 'target_domain',
+            responsivePriority: 4
           },
           {
             title: lang.bcc_local_dest,
@@ -1024,7 +1062,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -1084,22 +1123,26 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.owner,
-            data: 'user2'
+            data: 'user2',
+            responsivePriority: 4
           },
           {
             title: 'Server',
@@ -1139,7 +1182,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
@@ -1178,26 +1222,30 @@ jQuery(function($){
             data: null,
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 1
           },
           {
             title: '',
             data: 'chkbox',
             searchable: false,
             orderable: false,
-            defaultContent: ''
+            defaultContent: '',
+            responsivePriority: 2
           },
           {
             title: 'ID',
-            data: 'id'
+            data: 'id',
+            responsivePriority: 3
           },
           {
             title: lang.active,
             data: 'active'
           },
           {
-            title: lang.filter_type,
-            data: 'Type'
+            title: 'Type',
+            data: 'filter_type',
+            responsivePriority: 4
           },
           {
             title: lang.owner,
@@ -1214,7 +1262,8 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right',
+            responsivePriority: 5
           },
       ]
     });
diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js
index a963db1d..3deae87b 100644
--- a/data/web/js/site/quarantine.js
+++ b/data/web/js/site/quarantine.js
@@ -127,7 +127,7 @@ jQuery(function($){
           {
             title: lang.action,
             data: 'action',
-            className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+            className: 'text-md-end dt-sm-head-hidden dt-body-right'
           },
       ]
     });
diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js
index a77edb34..4ad3fbcb 100644
--- a/data/web/js/site/user.js
+++ b/data/web/js/site/user.js
@@ -185,7 +185,7 @@ jQuery(function($){
         {
           title: lang.action,
           data: 'action',
-          className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+          className: 'text-md-end dt-sm-head-hidden dt-body-right'
         }
       ]
     });
@@ -311,7 +311,7 @@ jQuery(function($){
         {
           title: lang.action,
           data: 'action',
-          className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+          className: 'text-md-end dt-sm-head-hidden dt-body-right'
         }
       ]
     });
@@ -390,7 +390,7 @@ jQuery(function($){
         {
           title: lang.action,
           data: 'action',
-          className: 'text-md-end d-md-block dt-sm-head-hidden dt-body-right'
+          className: 'text-md-end dt-sm-head-hidden dt-body-right'
         }
       ]
     });