diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 59569d5c..5fe5b756 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -703,74 +703,6 @@ jQuery(function($){ "toggleSelector": "table tbody span.footable-toggle" }); } - function draw_transport_maps_table() { - ft_transport_maps_table = FooTable.init('#transport_maps_table', { - "columns": [ - {"name":"chkbox","title":"","style":{"maxWidth":"60px","width":"60px"},"filterable": false,"sortable": false,"type":"html"}, - {"sorted": true,"name":"id","title":"ID","style":{"maxWidth":"60px","width":"60px","text-align":"center"}}, - {"name":"dest","title":lang.tls_map_dest}, - {"name":"parameters","title":lang.tls_map_parameters}, - {"name":"active","filterable": false,"style":{"maxWidth":"80px","width":"80px"},"title":lang.active}, - {"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right","maxWidth":"180px","width":"180px"},"type":"html","title":(role == "admin" ? lang.action : ""),"breakpoints":"xs sm"} - ], - "empty": lang.empty, - "rows": $.ajax({ - dataType: 'json', - url: '/api/v1/get/transport-map/all', - jsonp: false, - error: function () { - console.log('Cannot draw transport map table'); - }, - success: function (data) { - if (role == "admin") { - $.each(data, function (i, item) { - item.dest = escapeHtml(item.dest); - if (item.parameters == '') { - item.parameters = '-'; - } else { - item.parameters = '' + escapeHtml(item.parameters) + ''; - } - item.action = '
' + - ' ' + lang.edit + '' + - ' ' + lang.remove + '' + - '
'; - item.chkbox = ''; - }); - } - } - }), - "paging": { - "enabled": true, - "limit": 5, - "size": pagination_size - }, - "state": { - "enabled": true - }, - "filtering": { - "enabled": true, - "delay": 1200, - "position": "left", - "connectors": false, - "placeholder": lang.filter_table - }, - "sorting": { - "enabled": true - }, - "on": { - "destroy.ft.table": function(e, ft){ - $('.refresh_table').attr('disabled', 'true'); - }, - "ready.ft.table": function(e, ft){ - table_mailbox_ready(ft, 'transport_maps_table'); - }, - "after.ft.filtering": function(e, ft){ - table_mailbox_ready(ft, 'transport_maps_table'); - } - }, - "toggleSelector": "table tbody span.footable-toggle" - }); - } function draw_alias_table() { ft_alias_table = FooTable.init('#alias_table', { "columns": [ @@ -1102,6 +1034,5 @@ jQuery(function($){ draw_bcc_table(); draw_recipient_map_table(); draw_tls_policy_table(); - draw_transport_maps_table(); -}); \ No newline at end of file +});