added new state bits to MailingList, implemented form for editing those
This commit is contained in:
@@ -74,12 +74,11 @@ function showListArchive(data){
|
||||
}
|
||||
|
||||
function showListDetail(data){
|
||||
if (data.forward_from) $('input[name="forward_from"]').prop('checked',true);
|
||||
if (data.forward_attached) $('input[name="forward_attached"]').prop('checked',true);
|
||||
if (data.hide_receivers) $('input[name="hide_receivers"]').prop('checked',true);
|
||||
if (data.reply_to_list) $('input[name="reply_to_list"]').prop('checked',true);
|
||||
if (data.open) $('input[name="open"]').prop('checked',true);
|
||||
if (data.archive) $('input[name="archive"]').prop('checked',true);
|
||||
var options = ['forward_from','forward_attached','hide_receivers','reply_to_list','open_for_guests','open_for_subscribers','archive'];
|
||||
options.forEach(function(option,index,array){
|
||||
console.log(option,'→',data[option]);
|
||||
if (data[option]) $('input[name="'+option+'"]').prop('checked',true);
|
||||
});
|
||||
}
|
||||
|
||||
function showListOfEditableLists(data){
|
||||
|
||||
Reference in New Issue
Block a user