From fdb56de0a833042c72d5fcd528607482f89f7a05 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Wed, 8 Jun 2022 15:31:10 +0200 Subject: [PATCH] [BS5] jquery datatable - add classes to action column --- data/web/js/site/admin.js | 14 +++++++------- data/web/js/site/mailbox.js | 20 ++++++++++---------- data/web/js/site/quarantine.js | 2 +- data/web/js/site/user.js | 6 +++--- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/data/web/js/site/admin.js b/data/web/js/site/admin.js index 6be66188..f18de2ee 100644 --- a/data/web/js/site/admin.js +++ b/data/web/js/site/admin.js @@ -466,7 +466,7 @@ jQuery(function($){ function process_table_data(data, table) { if (table == 'relayhoststable') { $.each(data, function (i, item) { - item.action = '
' + + item.action = '
' + ' Test' + ' ' + lang.edit + '' + ' ' + lang.remove + '' + @@ -484,7 +484,7 @@ jQuery(function($){ if (item.username) { item.username = ' ' + item.username; } - item.action = '
' + + item.action = '
' + ' Test' + ' ' + lang.edit + '' + ' ' + lang.remove + '' + @@ -498,20 +498,20 @@ jQuery(function($){ return escapeHtml(i); }); item.recipients = rcpts.join('
'); - item.action = '
' + + item.action = ''; }); } else if (table == 'forwardinghoststable') { $.each(data, function (i, item) { - item.action = '
' + + item.action = ''; item.chkbox = ''; }); } else if (table == 'oauth2clientstable') { $.each(data, function (i, item) { - item.action = '
' + + item.action = ''; @@ -524,7 +524,7 @@ jQuery(function($){ item.selected_domains = escapeHtml(item.selected_domains); item.selected_domains = item.selected_domains.toString().replace(/,/g, "
"); item.chkbox = ''; - item.action = '
' + + item.action = '
' + ' ' + lang.edit + '' + ' ' + lang.remove + '' + ' Login' + @@ -538,7 +538,7 @@ jQuery(function($){ item.usr = item.username; } item.chkbox = ''; - item.action = '
' + + item.action = ''; diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 97862d4a..068c7242 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -256,7 +256,7 @@ jQuery(function($){ item.def_quota_for_mbox = humanFileSize(item.def_quota_for_mbox); item.max_quota_for_mbox = humanFileSize(item.max_quota_for_mbox); item.chkbox = ''; - item.action = '
'; + item.action = '
'; if (role == "admin") { item.action += ' ' + lang.edit + '' + ' ' + lang.remove + '' + @@ -414,7 +414,7 @@ jQuery(function($){ var btnSize = 'btn-xs-third'; if (ALLOW_ADMIN_EMAIL_LOGIN) btnSize = 'btn-xs-quart'; - item.action = '
' + + item.action = '
' + ' ' + lang.edit + '' + ' ' + lang.remove + '' + ''; @@ -551,7 +551,7 @@ jQuery(function($){ } else { item.multiple_bookings = '' + lang.booking_custom_short + ' (' + item.multiple_bookings + ')'; } - item.action = '
' + + item.action = ''; @@ -623,7 +623,7 @@ jQuery(function($){ url: "/api/v1/get/bcc/all", dataSrc: function(json){ $.each(json, function (i, item) { - item.action = '
' + + item.action = ''; @@ -705,7 +705,7 @@ jQuery(function($){ $.each(json, function (i, item) { item.recipient_map_old = escapeHtml(item.recipient_map_old); item.recipient_map_new = escapeHtml(item.recipient_map_new); - item.action = '
' + + item.action = ''; @@ -777,7 +777,7 @@ jQuery(function($){ } else { item.parameters = '' + escapeHtml(item.parameters) + ''; } - item.action = '
' + + item.action = ''; @@ -848,7 +848,7 @@ jQuery(function($){ url: "/api/v1/get/alias/all", dataSrc: function(json){ $.each(json, function (i, item) { - item.action = '
' + + item.action = ''; @@ -962,7 +962,7 @@ jQuery(function($){ url: "/api/v1/get/alias-domain/all", dataSrc: function(json){ $.each(json, function (i, item) { - item.action = '
' + + item.action = '' + @@ -1047,7 +1047,7 @@ jQuery(function($){ item.exclude = '' + item.exclude + ''; } item.server_w_port = escapeHtml(item.user1) + '@' + item.host1 + ':' + item.port1; - item.action = '
' + + item.action = ''; @@ -1161,7 +1161,7 @@ jQuery(function($){ } item.script_data = '
' + escapeHtml(item.script_data) + '
' item.filter_type = '
' + item.filter_type.charAt(0).toUpperCase() + item.filter_type.slice(1).toLowerCase() + '
' - item.action = '
' + + item.action = ''; diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index 2b36a007..a963db1d 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -48,7 +48,7 @@ jQuery(function($){ item.notified = '✖'; } if (acl_data.login_as === 1) { - item.action = '
' + + item.action = ''; diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index 9a273ed2..a77edb34 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -139,7 +139,7 @@ jQuery(function($){ console.log(data); $.each(data, function (i, item) { if (acl_data.spam_alias === 1) { - item.action = '
' + + item.action = ''; item.chkbox = ''; @@ -210,7 +210,7 @@ jQuery(function($){ } item.server_w_port = escapeHtml(item.user1 + '@' + item.host1 + ':' + item.port1); if (acl_data.syncjobs === 1) { - item.action = '
' + + item.action = ''; @@ -337,7 +337,7 @@ jQuery(function($){ if (item.sieve_access == 1) { item.protocols.push("Sieve"); } item.protocols = item.protocols.join(" ") if (acl_data.app_passwds === 1) { - item.action = '
' + + item.action = '';