diff --git a/data/web/js/site/admin.js b/data/web/js/site/admin.js index f98a004a..677cd675 100644 --- a/data/web/js/site/admin.js +++ b/data/web/js/site/admin.js @@ -63,13 +63,6 @@ jQuery(function($){ draw_table = $(this).data('draw'); eval(draw_table + '()'); }); - function table_admin_ready(ft, name) { - heading = ft.$el.parents('.card').find('.card-header') - var ft_paging = ft.use(FooTable.Paging) - $(heading).children('.table-lines').text(function(){ - return ft_paging.totalRows; - }) - } function draw_domain_admins() { $('#domainadminstable').DataTable({ processing: true, @@ -78,12 +71,23 @@ jQuery(function($){ ajax: { type: "GET", url: "/api/v1/get/domain-admin/all", - dataSrc: function(json){ - console.log(json); - return json; + dataSrc: function(data){ + return process_table_data(data, 'domainadminstable'); } }, columns: [ + { + // placeholder, so checkbox will not block child row toggle + title: '', + data: null, + searchable: false, + orderable: false, + defaultContent: '' + }, + { + title: '', + data: 'chkbox' + }, { title: lang.username, data: 'username', @@ -113,74 +117,57 @@ jQuery(function($){ }, { title: lang.action, - data: null, - render: function (data, type) { - return `
{{ lang.admin.forwarding_hosts_hint }}
-{{ lang.admin.oauth2_info|raw }}
-{{ lang.admin.relayhosts_hint|raw }}
-{{ lang.admin.transports_hint|raw }}
-{{ lang.mailbox.bcc_info|raw }}
-{# #} -{{ lang.mailbox.bcc_info|raw }}
+ {##} +{{ lang.mailbox.recipient_map_info }}
- {# #} -{{ lang.mailbox.recipient_map_info }}
+ {##}{{ lang.mailbox.sieve_info|raw }}
{{ lang.mailbox.alias_domain_alias_hint|raw }}
+ +{{ lang.mailbox.booking_0_short }} - {{ lang.mailbox.booking_null }}
-{{ lang.mailbox.booking_lt0_short }} - {{ lang.mailbox.booking_ltnull }}
-{{ lang.mailbox.booking_custom_short }} - {{ lang.mailbox.booking_custom }}
-{{ lang.mailbox.booking_0_short }} - {{ lang.mailbox.booking_null }}
+{{ lang.mailbox.booking_lt0_short }} - {{ lang.mailbox.booking_ltnull }}
+{{ lang.mailbox.booking_custom_short }} - {{ lang.mailbox.booking_custom }}
+ {##} +{{ lang.mailbox.tls_policy_maps_info|raw }}
-{# #} -{{ lang.mailbox.tls_policy_maps_info|raw }}
+ {##} +{{ lang.quarantine.qinfo|raw }}
-- {% if not quarantine_settings.retention_size or not quarantine_settings.max_size %} -
- {{ lang.quarantine.settings_info|format(quarantine_settings.retention_size, quarantine_settings.max_size)|raw }} +
{{ lang.quarantine.qinfo|raw }}
++ {% if not quarantine_settings.retention_size or not quarantine_settings.max_size %} +
+ {{ lang.quarantine.settings_info|format(quarantine_settings.retention_size, quarantine_settings.max_size)|raw }} +
+ {% endif %} - {% endif %} - -