2017-11-03 21:37:24 +02:00
|
|
|
// Base64 functions
|
|
|
|
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(r){var t,e,o,a,h,n,c,d="",C=0;for(r=Base64._utf8_encode(r);C<r.length;)a=(t=r.charCodeAt(C++))>>2,h=(3&t)<<4|(e=r.charCodeAt(C++))>>4,n=(15&e)<<2|(o=r.charCodeAt(C++))>>6,c=63&o,isNaN(e)?n=c=64:isNaN(o)&&(c=64),d=d+this._keyStr.charAt(a)+this._keyStr.charAt(h)+this._keyStr.charAt(n)+this._keyStr.charAt(c);return d},decode:function(r){var t,e,o,a,h,n,c="",d=0;for(r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"");d<r.length;)t=this._keyStr.indexOf(r.charAt(d++))<<2|(a=this._keyStr.indexOf(r.charAt(d++)))>>4,e=(15&a)<<4|(h=this._keyStr.indexOf(r.charAt(d++)))>>2,o=(3&h)<<6|(n=this._keyStr.indexOf(r.charAt(d++))),c+=String.fromCharCode(t),64!=h&&(c+=String.fromCharCode(e)),64!=n&&(c+=String.fromCharCode(o));return c=Base64._utf8_decode(c)},_utf8_encode:function(r){r=r.replace(/\r\n/g,"\n");for(var t="",e=0;e<r.length;e++){var o=r.charCodeAt(e);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},_utf8_decode:function(r){for(var t="",e=0,o=c1=c2=0;e<r.length;)(o=r.charCodeAt(e))<128?(t+=String.fromCharCode(o),e++):o>191&&o<224?(c2=r.charCodeAt(e+1),t+=String.fromCharCode((31&o)<<6|63&c2),e+=2):(c2=r.charCodeAt(e+1),c3=r.charCodeAt(e+2),t+=String.fromCharCode((15&o)<<12|(63&c2)<<6|63&c3),e+=3);return t}};
|
2017-05-11 23:10:32 +02:00
|
|
|
jQuery(function($){
|
2017-06-15 23:03:21 +02:00
|
|
|
// http://stackoverflow.com/questions/24816/escaping-html-strings-with-jquery
|
2017-11-03 21:37:24 +02:00
|
|
|
var entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};
|
2019-10-29 09:39:57 +02:00
|
|
|
function jq(myid) {return "#" + myid.replace( /(:|\.|\[|\]|,|=|@)/g, "\\$1" );}
|
2017-11-03 21:37:24 +02:00
|
|
|
function escapeHtml(n){return String(n).replace(/[&<>"'`=\/]/g,function(n){return entityMap[n]})}
|
2019-10-29 22:56:35 +02:00
|
|
|
function validateRegex(e){var t=e.split("/"),n=e,r="";t.length>1&&(n=t[1],r=t[2]);try{return new RegExp(n,r),!0}catch(e){return!1}}
|
2017-11-03 21:37:24 +02:00
|
|
|
function humanFileSize(i){if(Math.abs(i)<1024)return i+" B";var B=["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],e=-1;do{i/=1024,++e}while(Math.abs(i)>=1024&&e<B.length-1);return i.toFixed(1)+" "+B[e]}
|
2018-12-20 12:23:35 +02:00
|
|
|
function hashCode(t){for(var n=0,r=0;r<t.length;r++)n=t.charCodeAt(r)+((n<<5)-n);return n}
|
|
|
|
function intToRGB(t){var n=(16777215&t).toString(16).toUpperCase();return"00000".substring(0,6-n.length)+n}
|
2018-08-21 17:41:04 +02:00
|
|
|
$("#dkim_missing_keys").on('click', function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
var domains = [];
|
|
|
|
$('.dkim_missing').each(function() {
|
|
|
|
domains.push($(this).val());
|
|
|
|
});
|
|
|
|
$('#dkim_add_domains').val(domains);
|
|
|
|
});
|
2019-02-05 11:37:28 +02:00
|
|
|
$(".arrow-toggle").on('click', function(e) { e.preventDefault(); $(this).find('.arrow').toggleClass("animation"); });
|
2018-10-23 21:14:57 +02:00
|
|
|
$("#mass_exclude").change(function(){ $("#mass_include").selectpicker('deselectAll'); });
|
|
|
|
$("#mass_include").change(function(){ $("#mass_exclude").selectpicker('deselectAll'); });
|
|
|
|
$("#mass_disarm").click(function() { $("#mass_send").attr("disabled", !this.checked); });
|
2020-05-04 07:51:50 +02:00
|
|
|
$(".admin-ays-dialog").click(function() { return confirm(lang.ays); });
|
2019-10-29 09:39:57 +02:00
|
|
|
$(".validate_rspamd_regex").click(function( event ) {
|
|
|
|
event.preventDefault();
|
|
|
|
var regex_map_id = $(this).data('regex-map');
|
2019-10-29 22:56:35 +02:00
|
|
|
var regex_data = $(jq(regex_map_id)).val().split(/\r?\n/);
|
|
|
|
var regex_valid = true;
|
|
|
|
for(var i = 0;i < regex_data.length;i++){
|
|
|
|
if(regex_data[i].startsWith('#') || !regex_data[i]){
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if(!validateRegex(regex_data[i])) {
|
|
|
|
mailcow_alert_box('Cannot build regex from line ' + (i+1), 'danger');
|
|
|
|
var regex_valid = false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if(!regex_data[i].startsWith('/') || !/\/[ims]?$/.test(regex_data[i])){
|
|
|
|
mailcow_alert_box('Line ' + (i+1) + ' is invalid', 'danger');
|
|
|
|
var regex_valid = false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (regex_valid) {
|
|
|
|
mailcow_alert_box('Regex OK', 'success');
|
|
|
|
$('button[data-id="' + regex_map_id + '"]').attr({"disabled": false});
|
|
|
|
}
|
2019-10-29 09:39:57 +02:00
|
|
|
});
|
|
|
|
$('.textarea-code').on('keyup', function() {
|
|
|
|
$('.submit_rspamd_regex').attr({"disabled": true});
|
|
|
|
});
|
|
|
|
$("#show_rspamd_global_filters").click(function() {
|
|
|
|
$.get("inc/ajax/show_rspamd_global_filters.php");
|
|
|
|
$("#confirm_show_rspamd_global_filters").hide();
|
2022-06-06 20:38:24 +02:00
|
|
|
$("#rspamd_global_filters").removeClass("d-none");
|
2019-10-29 09:39:57 +02:00
|
|
|
});
|
2018-10-23 21:14:57 +02:00
|
|
|
$("#super_delete").click(function() { return confirm(lang.queue_ays); });
|
2022-07-08 15:47:21 +02:00
|
|
|
|
2018-10-23 21:14:57 +02:00
|
|
|
$(".refresh_table").on('click', function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
var table_name = $(this).data('table');
|
2022-06-08 12:06:14 +02:00
|
|
|
$('#' + table_name).DataTable().ajax.reload();
|
2018-10-11 11:59:23 +02:00
|
|
|
});
|
2017-05-11 23:10:32 +02:00
|
|
|
function draw_domain_admins() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#domainadminstable') ) {
|
|
|
|
$('#domainadminstable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-16 11:26:49 +02:00
|
|
|
$('#domainadminstable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/domain-admin/all",
|
2022-05-19 15:06:18 +02:00
|
|
|
dataSrc: function(data){
|
|
|
|
return process_table_data(data, 'domainadminstable');
|
2017-05-11 23:10:32 +02:00
|
|
|
}
|
2022-05-16 11:26:49 +02:00
|
|
|
},
|
|
|
|
columns: [
|
2022-05-19 15:06:18 +02:00
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
2022-05-16 11:26:49 +02:00
|
|
|
{
|
|
|
|
title: lang.username,
|
|
|
|
data: 'username',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-16 11:26:49 +02:00
|
|
|
},
|
|
|
|
{
|
2022-07-08 11:31:08 +02:00
|
|
|
title: lang.admin_domains,
|
|
|
|
data: 'selected_domains',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-05-16 11:26:49 +02:00
|
|
|
},
|
|
|
|
{
|
2022-07-08 11:31:08 +02:00
|
|
|
title: "TFA",
|
2022-05-16 11:26:49 +02:00
|
|
|
data: 'tfa_active',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-05-16 11:26:49 +02:00
|
|
|
render: function (data, type) {
|
2022-07-08 11:31:08 +02:00
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
2022-05-16 11:26:49 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.active,
|
|
|
|
data: 'active',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-05-16 11:26:49 +02:00
|
|
|
render: function (data, type) {
|
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right',
|
|
|
|
defaultContent: ''
|
2022-05-16 11:26:49 +02:00
|
|
|
},
|
2022-06-08 15:28:45 +02:00
|
|
|
],
|
|
|
|
initComplete: function(settings, json){
|
|
|
|
}
|
2017-05-11 23:10:32 +02:00
|
|
|
});
|
|
|
|
}
|
2019-10-02 19:00:36 +02:00
|
|
|
function draw_oauth2_clients() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#oauth2clientstable') ) {
|
|
|
|
$('#oauth2clientstable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-19 15:06:18 +02:00
|
|
|
$('#oauth2clientstable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/oauth2-client/all",
|
|
|
|
dataSrc: function(data){
|
2019-10-02 19:00:36 +02:00
|
|
|
return process_table_data(data, 'oauth2clientstable');
|
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'ID',
|
|
|
|
data: 'id',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.oauth2_client_id,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'client_id',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.oauth2_client_secret,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'client_secret',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.oauth2_redirect_uri,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'redirect_uri',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
]
|
2019-10-02 19:00:36 +02:00
|
|
|
});
|
|
|
|
}
|
2018-10-11 11:59:23 +02:00
|
|
|
function draw_admins() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#adminstable') ) {
|
|
|
|
$('#adminstable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-13 14:16:32 +02:00
|
|
|
$('#adminstable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/admin/all",
|
2022-05-19 15:06:18 +02:00
|
|
|
dataSrc: function(data){
|
|
|
|
return process_table_data(data, 'adminstable');
|
2018-10-11 11:59:23 +02:00
|
|
|
}
|
2022-05-13 14:16:32 +02:00
|
|
|
},
|
|
|
|
columns: [
|
2022-05-19 15:06:18 +02:00
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
2022-05-13 14:16:32 +02:00
|
|
|
{
|
|
|
|
title: lang.username,
|
|
|
|
data: 'username',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-13 14:16:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "TFA",
|
|
|
|
data: 'tfa_active',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-05-13 14:16:32 +02:00
|
|
|
render: function (data, type) {
|
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.active,
|
|
|
|
data: 'active',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-05-13 14:16:32 +02:00
|
|
|
render: function (data, type) {
|
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: '',
|
2022-06-08 16:21:15 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right'
|
2022-05-13 14:16:32 +02:00
|
|
|
},
|
|
|
|
]
|
2018-10-11 11:59:23 +02:00
|
|
|
});
|
|
|
|
}
|
2017-05-11 23:10:32 +02:00
|
|
|
function draw_fwd_hosts() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#forwardinghoststable') ) {
|
|
|
|
$('#forwardinghoststable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-19 15:06:18 +02:00
|
|
|
$('#forwardinghoststable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/fwdhost/all",
|
|
|
|
dataSrc: function(data){
|
2017-11-03 21:37:24 +02:00
|
|
|
return process_table_data(data, 'forwardinghoststable');
|
2017-05-06 23:52:40 +02:00
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.host,
|
|
|
|
data: 'host',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.source,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'source',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.spamfilter,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'keep_spam',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
]
|
2017-05-11 23:10:32 +02:00
|
|
|
});
|
|
|
|
}
|
2017-07-22 20:39:54 +02:00
|
|
|
function draw_relayhosts() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#relayhoststable') ) {
|
|
|
|
$('#relayhoststable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-19 15:06:18 +02:00
|
|
|
$('#relayhoststable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/relayhost/all",
|
|
|
|
dataSrc: function(data){
|
2017-11-03 21:37:24 +02:00
|
|
|
return process_table_data(data, 'relayhoststable');
|
2017-07-22 20:39:54 +02:00
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'ID',
|
|
|
|
data: 'id',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.host,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'hostname',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.username,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'username',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.in_use_by,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'in_use_by',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.active,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'active',
|
2022-07-08 11:31:08 +02:00
|
|
|
defaultContent: '',
|
|
|
|
render: function (data, type) {
|
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
]
|
2017-07-22 20:39:54 +02:00
|
|
|
});
|
|
|
|
}
|
2018-12-20 12:23:35 +02:00
|
|
|
function draw_transport_maps() {
|
2022-07-08 11:31:08 +02:00
|
|
|
// just recalc width if instance already exists
|
|
|
|
if ($.fn.DataTable.isDataTable('#transportstable') ) {
|
|
|
|
$('#transportstable').DataTable().columns.adjust().responsive.recalc();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-05-19 15:06:18 +02:00
|
|
|
$('#transportstable').DataTable({
|
|
|
|
processing: true,
|
|
|
|
serverSide: false,
|
|
|
|
language: lang_datatables,
|
|
|
|
ajax: {
|
|
|
|
type: "GET",
|
|
|
|
url: "/api/v1/get/transport/all",
|
|
|
|
dataSrc: function(data){
|
2018-12-20 12:23:35 +02:00
|
|
|
return process_table_data(data, 'transportstable');
|
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
// placeholder, so checkbox will not block child row toggle
|
|
|
|
title: '',
|
|
|
|
data: null,
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '',
|
2022-06-08 12:03:54 +02:00
|
|
|
data: 'chkbox',
|
|
|
|
searchable: false,
|
|
|
|
orderable: false,
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'ID',
|
|
|
|
data: 'id',
|
2022-07-01 16:20:39 +02:00
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.destination,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'destination',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.nexthop,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'nexthop',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.username,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'username',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.active,
|
2022-07-01 16:20:39 +02:00
|
|
|
data: 'active',
|
2022-07-08 11:31:08 +02:00
|
|
|
defaultContent: '',
|
|
|
|
render: function (data, type) {
|
|
|
|
if(data == 1) return '<i class="bi bi-check-lg"></i>';
|
|
|
|
else return '<i class="bi bi-x-lg"></i>'
|
|
|
|
}
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: lang.action,
|
2022-06-08 15:28:45 +02:00
|
|
|
data: 'action',
|
2022-07-01 16:20:39 +02:00
|
|
|
className: 'text-md-end dt-sm-head-hidden dt-body-right',
|
|
|
|
defaultContent: ''
|
2022-05-19 15:06:18 +02:00
|
|
|
},
|
|
|
|
]
|
2018-12-20 12:23:35 +02:00
|
|
|
});
|
|
|
|
}
|
2017-11-03 21:37:24 +02:00
|
|
|
|
|
|
|
function process_table_data(data, table) {
|
2017-12-09 14:17:15 +02:00
|
|
|
if (table == 'relayhoststable') {
|
2017-11-03 21:37:24 +02:00
|
|
|
$.each(data, function (i, item) {
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="#" data-bs-toggle="modal" data-bs-target="#testTransportModal" data-transport-id="' + encodeURI(item.id) + '" data-transport-type="sender-dependent" class="btn btn-xs btn-xs-third btn-secondary"><i class="bi bi-caret-right-fill"></i> Test</a>' +
|
|
|
|
'<a href="/edit/relayhost/' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-third btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
2021-07-09 08:21:09 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-rlyhost" data-api-url="delete/relayhost" data-item="' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-third btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
2017-11-03 21:37:24 +02:00
|
|
|
'</div>';
|
2021-05-26 14:02:27 +02:00
|
|
|
if (item.used_by_mailboxes == '') { item.in_use_by = item.used_by_domains; }
|
|
|
|
else if (item.used_by_domains == '') { item.in_use_by = item.used_by_mailboxes; }
|
|
|
|
else { item.in_use_by = item.used_by_mailboxes + '<hr style="margin:5px 0px 5px 0px;">' + item.used_by_domains; }
|
2017-11-03 21:37:24 +02:00
|
|
|
item.chkbox = '<input type="checkbox" data-id="rlyhosts" name="multi_select" value="' + item.id + '" />';
|
|
|
|
});
|
2018-12-20 12:23:35 +02:00
|
|
|
} else if (table == 'transportstable') {
|
|
|
|
$.each(data, function (i, item) {
|
2021-05-28 10:40:41 +02:00
|
|
|
if (item.is_mx_based) {
|
2022-04-01 08:25:47 +02:00
|
|
|
item.destination = '<i class="bi bi-info-circle-fill text-info mx-info" data-bs-toggle="tooltip" title="' + lang.is_mx_based + '"></i> <code>' + item.destination + '</code>';
|
2021-05-28 10:40:41 +02:00
|
|
|
}
|
2018-12-20 12:23:35 +02:00
|
|
|
if (item.username) {
|
2021-05-28 10:40:41 +02:00
|
|
|
item.username = '<i style="color:#' + intToRGB(hashCode(item.nexthop)) + ';" class="bi bi-square-fill"></i> ' + item.username;
|
2018-12-20 12:23:35 +02:00
|
|
|
}
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="#" data-bs-toggle="modal" data-bs-target="#testTransportModal" data-transport-id="' + encodeURI(item.id) + '" data-transport-type="transport-map" class="btn btn-xs btn-xs-third btn-secondary"><i class="bi bi-caret-right-fill"></i> Test</a>' +
|
|
|
|
'<a href="/edit/transport/' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-third btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
2021-07-09 08:21:09 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-transport" data-api-url="delete/transport" data-item="' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-third btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
2018-12-20 12:23:35 +02:00
|
|
|
'</div>';
|
|
|
|
item.chkbox = '<input type="checkbox" data-id="transports" name="multi_select" value="' + item.id + '" />';
|
|
|
|
});
|
2018-10-23 21:14:57 +02:00
|
|
|
} else if (table == 'queuetable') {
|
|
|
|
$.each(data, function (i, item) {
|
|
|
|
item.chkbox = '<input type="checkbox" data-id="mailqitems" name="multi_select" value="' + item.queue_id + '" />';
|
2018-10-25 22:42:20 +02:00
|
|
|
rcpts = $.map(item.recipients, function(i) {
|
|
|
|
return escapeHtml(i);
|
|
|
|
});
|
|
|
|
item.recipients = rcpts.join('<hr style="margin:1px!important">');
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="#" data-bs-toggle="modal" data-bs-target="#showQueuedMsg" data-queue-id="' + encodeURI(item.queue_id) + '" class="btn btn-xs btn-secondary">' + lang.queue_show_message + '</a>' +
|
2020-05-19 20:20:05 +02:00
|
|
|
'</div>';
|
2018-10-23 21:14:57 +02:00
|
|
|
});
|
2017-11-03 21:37:24 +02:00
|
|
|
} else if (table == 'forwardinghoststable') {
|
|
|
|
$.each(data, function (i, item) {
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2021-05-26 14:02:27 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-fwdhost" data-api-url="delete/fwdhost" data-item="' + encodeURI(item.host) + '" class="btn btn-xs btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
2017-11-03 21:37:24 +02:00
|
|
|
'</div>';
|
|
|
|
item.chkbox = '<input type="checkbox" data-id="fwdhosts" name="multi_select" value="' + item.host + '" />';
|
|
|
|
});
|
2019-10-02 19:00:36 +02:00
|
|
|
} else if (table == 'oauth2clientstable') {
|
|
|
|
$.each(data, function (i, item) {
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="/edit.php?oauth2client=' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-half btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
2021-07-09 08:21:09 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-oauth2-client" data-api-url="delete/oauth2-client" data-item="' + encodeURI(item.id) + '" class="btn btn-xs btn-xs-half btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
2019-10-02 19:00:36 +02:00
|
|
|
'</div>';
|
|
|
|
item.scope = "profile";
|
|
|
|
item.grant_types = 'refresh_token password authorization_code';
|
|
|
|
item.chkbox = '<input type="checkbox" data-id="oauth2_clients" name="multi_select" value="' + item.id + '" />';
|
|
|
|
});
|
2017-11-03 21:37:24 +02:00
|
|
|
} else if (table == 'domainadminstable') {
|
|
|
|
$.each(data, function (i, item) {
|
2018-10-11 11:59:23 +02:00
|
|
|
item.selected_domains = escapeHtml(item.selected_domains);
|
|
|
|
item.selected_domains = item.selected_domains.toString().replace(/,/g, "<br>");
|
2017-11-03 21:37:24 +02:00
|
|
|
item.chkbox = '<input type="checkbox" data-id="domain_admins" name="multi_select" value="' + item.username + '" />';
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="/edit/domainadmin/' + encodeURI(item.username) + '" class="btn btn-xs btn-xs-third btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
2021-07-09 08:21:09 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-domain-admin" data-api-url="delete/domain-admin" data-item="' + encodeURI(item.username) + '" class="btn btn-xs btn-xs-third btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
|
|
|
'<a href="/index.php?duallogin=' + encodeURIComponent(item.username) + '" class="btn btn-xs btn-xs-third btn-success"><i class="bi bi-person-fill"></i> Login</a>' +
|
2017-11-03 21:37:24 +02:00
|
|
|
'</div>';
|
|
|
|
});
|
2018-10-11 11:59:23 +02:00
|
|
|
} else if (table == 'adminstable') {
|
|
|
|
$.each(data, function (i, item) {
|
2019-09-05 19:08:41 +02:00
|
|
|
if (admin_username.toLowerCase() == item.username.toLowerCase()) {
|
2021-05-23 13:18:52 +02:00
|
|
|
item.usr = '<i class="bi bi-person-check"></i> ' + item.username;
|
2018-10-11 11:59:23 +02:00
|
|
|
} else {
|
|
|
|
item.usr = item.username;
|
|
|
|
}
|
|
|
|
item.chkbox = '<input type="checkbox" data-id="admins" name="multi_select" value="' + item.username + '" />';
|
2022-06-08 15:31:10 +02:00
|
|
|
item.action = '<div class="btn-group">' +
|
2022-04-01 08:25:47 +02:00
|
|
|
'<a href="/edit/admin/' + encodeURI(item.username) + '" class="btn btn-xs btn-xs-half btn-secondary"><i class="bi bi-pencil-fill"></i> ' + lang.edit + '</a>' +
|
2021-07-09 08:21:09 +02:00
|
|
|
'<a href="#" data-action="delete_selected" data-id="single-admin" data-api-url="delete/admin" data-item="' + encodeURI(item.username) + '" class="btn btn-xs btn-xs-half btn-danger"><i class="bi bi-trash"></i> ' + lang.remove + '</a>' +
|
2018-10-11 11:59:23 +02:00
|
|
|
'</div>';
|
|
|
|
});
|
2017-11-03 21:37:24 +02:00
|
|
|
}
|
|
|
|
return data
|
|
|
|
};
|
2022-05-19 15:06:18 +02:00
|
|
|
|
|
|
|
// detect element visibility changes
|
|
|
|
function onVisible(element, callback) {
|
2022-07-01 16:20:39 +02:00
|
|
|
$(document).ready(function() {
|
|
|
|
element_object = document.querySelector(element);
|
|
|
|
if (element_object === null) return;
|
|
|
|
|
2022-05-19 15:06:18 +02:00
|
|
|
new IntersectionObserver((entries, observer) => {
|
|
|
|
entries.forEach(entry => {
|
|
|
|
if(entry.intersectionRatio > 0) {
|
|
|
|
callback(element_object);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}).observe(element_object);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// Draw Table if tab is active
|
2022-06-08 11:49:05 +02:00
|
|
|
onVisible("[id^=adminstable]", () => draw_admins());
|
|
|
|
onVisible("[id^=domainadminstable]", () => draw_domain_admins());
|
|
|
|
onVisible("[id^=oauth2clientstable]", () => draw_oauth2_clients());
|
|
|
|
onVisible("[id^=forwardinghoststable]", () => draw_fwd_hosts());
|
|
|
|
onVisible("[id^=relayhoststable]", () => draw_relayhosts());
|
|
|
|
onVisible("[id^=transportstable]", () => draw_transport_maps());
|
2022-05-13 14:16:32 +02:00
|
|
|
|
2021-05-23 23:09:37 +02:00
|
|
|
|
|
|
|
$('body').on('click', 'span.footable-toggle', function () {
|
|
|
|
event.stopPropagation();
|
|
|
|
})
|
|
|
|
|
2020-02-16 21:08:36 +02:00
|
|
|
// API IP check toggle
|
2020-04-10 20:57:01 +02:00
|
|
|
$("#skip_ip_check_ro").click(function( event ) {
|
|
|
|
$("#skip_ip_check_ro").not(this).prop('checked', false);
|
|
|
|
if ($("#skip_ip_check_ro:checked").length > 0) {
|
|
|
|
$('#allow_from_ro').prop('disabled', true);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$("#allow_from_ro").removeAttr('disabled');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$("#skip_ip_check_rw").click(function( event ) {
|
|
|
|
$("#skip_ip_check_rw").not(this).prop('checked', false);
|
|
|
|
if ($("#skip_ip_check_rw:checked").length > 0) {
|
|
|
|
$('#allow_from_rw').prop('disabled', true);
|
2020-02-16 21:08:36 +02:00
|
|
|
}
|
|
|
|
else {
|
2020-04-10 20:57:01 +02:00
|
|
|
$("#allow_from_rw").removeAttr('disabled');
|
2020-02-16 21:08:36 +02:00
|
|
|
}
|
|
|
|
});
|
2017-11-03 21:37:24 +02:00
|
|
|
// Relayhost
|
2017-07-26 23:11:43 +02:00
|
|
|
$('#testRelayhostModal').on('show.bs.modal', function (e) {
|
|
|
|
$('#test_relayhost_result').text("-");
|
|
|
|
button = $(e.relatedTarget)
|
|
|
|
if (button != null) {
|
|
|
|
$('#relayhost_id').val(button.data('relayhost-id'));
|
|
|
|
}
|
|
|
|
})
|
|
|
|
$('#test_relayhost').on('click', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
prev = $('#test_relayhost').text();
|
|
|
|
$(this).prop("disabled",true);
|
2021-05-22 12:13:37 +02:00
|
|
|
$(this).html('<i class="bi bi-arrow-repeat icon-spin"></i> ');
|
2017-07-26 23:11:43 +02:00
|
|
|
$.ajax({
|
|
|
|
type: 'GET',
|
2017-11-10 20:58:17 +02:00
|
|
|
url: 'inc/ajax/relay_check.php',
|
2017-07-26 23:11:43 +02:00
|
|
|
dataType: 'text',
|
|
|
|
data: $('#test_relayhost_form').serialize(),
|
|
|
|
complete: function (data) {
|
2018-10-23 21:14:57 +02:00
|
|
|
$('#test_relayhost_result').html(data.responseText);
|
|
|
|
$('#test_relayhost').prop("disabled",false);
|
|
|
|
$('#test_relayhost').text(prev);
|
2017-07-26 23:11:43 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
2018-12-20 12:23:35 +02:00
|
|
|
// Transport
|
|
|
|
$('#testTransportModal').on('show.bs.modal', function (e) {
|
|
|
|
$('#test_transport_result').text("-");
|
|
|
|
button = $(e.relatedTarget)
|
|
|
|
if (button != null) {
|
|
|
|
$('#transport_id').val(button.data('transport-id'));
|
|
|
|
$('#transport_type').val(button.data('transport-type'));
|
|
|
|
}
|
|
|
|
})
|
|
|
|
$('#test_transport').on('click', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
prev = $('#test_transport').text();
|
|
|
|
$(this).prop("disabled",true);
|
2022-07-08 11:31:08 +02:00
|
|
|
$(this).html('<div class="spinner-border" role="status"><span class="visually-hidden">Loading...</span></div> ');
|
2018-12-20 12:23:35 +02:00
|
|
|
$.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: 'inc/ajax/transport_check.php',
|
|
|
|
dataType: 'text',
|
|
|
|
data: $('#test_transport_form').serialize(),
|
|
|
|
complete: function (data) {
|
|
|
|
$('#test_transport_result').html(data.responseText);
|
|
|
|
$('#test_transport').prop("disabled",false);
|
|
|
|
$('#test_transport').text(prev);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
2017-11-03 21:37:24 +02:00
|
|
|
// DKIM private key modal
|
|
|
|
$('#showDKIMprivKey').on('show.bs.modal', function (e) {
|
|
|
|
$('#priv_key_pre').text("-");
|
|
|
|
p_related = $(e.relatedTarget)
|
|
|
|
if (p_related != null) {
|
|
|
|
var decoded_key = Base64.decode((p_related.data('priv-key')));
|
|
|
|
$('#priv_key_pre').text(decoded_key);
|
|
|
|
}
|
|
|
|
})
|
2020-11-15 20:32:37 +02:00
|
|
|
// FIDO2 friendly name modal
|
|
|
|
$('#fido2ChangeFn').on('show.bs.modal', function (e) {
|
|
|
|
rename_link = $(e.relatedTarget)
|
|
|
|
if (rename_link != null) {
|
2020-11-17 14:38:28 +02:00
|
|
|
$('#fido2_cid').val(rename_link.data('cid'));
|
2020-11-15 20:32:37 +02:00
|
|
|
$('#fido2_subject_desc').text(Base64.decode(rename_link.data('subject')));
|
|
|
|
}
|
|
|
|
})
|
2017-11-03 21:37:24 +02:00
|
|
|
// App links
|
2020-08-27 20:43:33 +02:00
|
|
|
function add_table_row(table_id, type) {
|
2017-10-21 10:07:06 +02:00
|
|
|
var row = $('<tr />');
|
2020-08-27 20:43:33 +02:00
|
|
|
if (type == "app_link") {
|
2022-07-06 16:55:31 +02:00
|
|
|
cols = '<td><input class="input-sm input-xs-lg form-control" data-id="app_links" type="text" name="app" required></td>';
|
|
|
|
cols += '<td><input class="input-sm input-xs-lg form-control" data-id="app_links" type="text" name="href" required></td>';
|
|
|
|
cols += '<td><a href="#" role="button" class="btn btn-sm btn-xs-lg btn-secondary h-100 w-100" type="button">' + lang.remove_row + '</a></td>';
|
2020-08-27 20:43:33 +02:00
|
|
|
} else if (type == "f2b_regex") {
|
2022-07-06 16:55:31 +02:00
|
|
|
cols = '<td><input style="text-align:center" class="input-sm input-xs-lg form-control" data-id="f2b_regex" type="text" value="+" disabled></td>';
|
|
|
|
cols += '<td><input class="input-sm input-xs-lg form-control regex-input" data-id="f2b_regex" type="text" name="regex" required></td>';
|
|
|
|
cols += '<td><a href="#" role="button" class="btn btn-sm btn-xs-lg btn-secondary h-100 w-100" type="button">' + lang.remove_row + '</a></td>';
|
2020-08-27 20:43:33 +02:00
|
|
|
}
|
2017-10-21 10:07:06 +02:00
|
|
|
row.append(cols);
|
|
|
|
table_id.append(row);
|
|
|
|
}
|
|
|
|
$('#app_link_table').on('click', 'tr a', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
$(this).parents('tr').remove();
|
|
|
|
});
|
2020-08-27 20:43:33 +02:00
|
|
|
$('#f2b_regex_table').on('click', 'tr a', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
$(this).parents('tr').remove();
|
|
|
|
});
|
2017-10-21 10:07:06 +02:00
|
|
|
$('#add_app_link_row').click(function() {
|
2020-08-27 20:43:33 +02:00
|
|
|
add_table_row($('#app_link_table'), "app_link");
|
|
|
|
});
|
|
|
|
$('#add_f2b_regex_row').click(function() {
|
|
|
|
add_table_row($('#f2b_regex_table'), "f2b_regex");
|
2017-10-21 10:07:06 +02:00
|
|
|
});
|
2022-07-08 15:47:21 +02:00
|
|
|
});
|