|
|
@ -132,13 +132,25 @@ function showListOfModeratedLists(data){ |
|
|
|
$('<td/>').html('<span class="error">'+list.last_error+'</span>').appendTo(row); |
|
|
|
$('<td/>').html('<span class="error">'+list.last_error+'</span>').appendTo(row); |
|
|
|
} else $('<td/>').text('-').appendTo(row); |
|
|
|
} else $('<td/>').text('-').appendTo(row); |
|
|
|
let select = $('<select/>',{name:addr}).change(function () { |
|
|
|
let select = $('<select/>',{name:addr}).change(function () { |
|
|
|
let action = $(this).children("option:selected").val(); |
|
|
|
let selected = $(this).children("option:selected"); |
|
|
|
|
|
|
|
let action = selected.val(); |
|
|
|
|
|
|
|
let verb = selected.text(); |
|
|
|
let list = $(this).attr('name'); |
|
|
|
let list = $(this).attr('name'); |
|
|
|
if (confirm("This will "+action+" '"+list+"'. Are you sure?")) self[action+'List'](list); |
|
|
|
if (confirm("Dies wird '"+list+"' "+verb+". Sind Sie sicher?")) self[action+'List'](list); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('<option/>').text('Aktionen').appendTo(select); |
|
|
|
$('<option/>').text('Aktionen').appendTo(select); |
|
|
|
['enable','disable','drop','hide','show','test'].forEach(val => $('<option/>',{value:val}).text(val).appendTo(select)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object.entries({ |
|
|
|
|
|
|
|
'enable':'aktivieren', |
|
|
|
|
|
|
|
'disable':'deaktivieren', |
|
|
|
|
|
|
|
'drop':'löschen', |
|
|
|
|
|
|
|
'hide':'verstecken', |
|
|
|
|
|
|
|
'show':'veröffentlichen', |
|
|
|
|
|
|
|
'test':'testen' |
|
|
|
|
|
|
|
}).forEach(([k,v],i) => { |
|
|
|
|
|
|
|
$('<option/>',{value:k}).text(v).appendTo(select) |
|
|
|
|
|
|
|
}); |
|
|
|
select.appendTo($('<td/>')).appendTo(row); |
|
|
|
select.appendTo($('<td/>')).appendTo(row); |
|
|
|
|
|
|
|
|
|
|
|
$('<td/>').text(list.imap_host).appendTo(row); |
|
|
|
$('<td/>').text(list.imap_host).appendTo(row); |
|
|
@ -258,4 +270,4 @@ function unsubscribeFrom(listEmail){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(start); // document.on ready |
|
|
|
$(start); // document.on ready |
|
|
|