mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
added a select option to auditors to define the recipients of the message to be restored
This commit is contained in:
@ -838,3 +838,25 @@ function close_folder(id) {
|
||||
}
|
||||
|
||||
|
||||
function assemble_recipient_list() {
|
||||
var a = document.getElementById('restorebox');
|
||||
var emails = '';
|
||||
|
||||
for(i=0; i<a.childNodes.length; i++) {
|
||||
|
||||
if(a.childNodes[i].id && a.childNodes[i].id.substring(0, 5) == "rcpt_") {
|
||||
var e = document.getElementById(a.childNodes[i].id);
|
||||
if(e && e.checked == 1) {
|
||||
|
||||
email = a.childNodes[i].id.substring(5,1000);
|
||||
|
||||
if(emails) { emails += ' ' + email; } else { emails = email; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return encodeURI(emails);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user