|
|
|
@ -70,7 +70,7 @@ function showListOfEditableLists(data){
@@ -70,7 +70,7 @@ function showListOfEditableLists(data){
|
|
|
|
|
let list = $(this).attr('name'); |
|
|
|
|
if (confirm("This will "+action+" '"+list+"'. Are you sure?")) self[action+'List'](list); |
|
|
|
|
}); |
|
|
|
|
$('<option/>').text('Actions').appendTo(select); |
|
|
|
|
$('<option/>').text('Aktionen').appendTo(select); |
|
|
|
|
['enable','disable','drop','hide','show','test'].forEach(val => $('<option/>',{value:val}).text(val).appendTo(select)); |
|
|
|
|
|
|
|
|
|
select.appendTo($('<td/>')).appendTo(row); |
|
|
|
@ -100,8 +100,8 @@ function showListList(data){
@@ -100,8 +100,8 @@ function showListList(data){
|
|
|
|
|
$('<td/>').text(list.email.domain).appendTo(row); |
|
|
|
|
$('<td/>').text(list.state).appendTo(row); |
|
|
|
|
let td = $('<td/>',{class:'actions'}); |
|
|
|
|
$('<button/>',{onclick:"subscribeTo('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('subscribe').appendTo(td); |
|
|
|
|
$('<button/>',{onclick:"unsubscribeFrom('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('unsubcribe').appendTo(td); |
|
|
|
|
$('<button/>',{onclick:"subscribeTo('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('abonnieren').appendTo(td); |
|
|
|
|
$('<button/>',{onclick:"unsubscribeFrom('"+list.email.domain+"', '"+list.email.prefix+"');"}).text('abbestellen').appendTo(td); |
|
|
|
|
td.appendTo(row); |
|
|
|
|
|
|
|
|
|
row.appendTo('#listlist'); |
|
|
|
|