mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-22 06:11:32 +00:00
[Web] Add delimiter_action to mailbox and mailbox_template add/edit admin forms (#6620)
This commit is contained in:
@@ -269,6 +269,24 @@ $(document).ready(function() {
|
||||
function setMailboxTemplateData(template){
|
||||
$("#addInputQuota").val(template.quota / 1048576);
|
||||
|
||||
if (template.tagged_mail_handler === "subfolder"){
|
||||
$('#tagged_mail_handler_subfolder').prop('checked', true);
|
||||
$('#tagged_mail_handler_subject').prop('checked', false);
|
||||
$('#tagged_mail_handler_none').prop('checked', false);
|
||||
} else if(template.tagged_mail_handler === "subject"){
|
||||
$('#tagged_mail_handler_subfolder').prop('checked', false);
|
||||
$('#tagged_mail_handler_subject').prop('checked', true);
|
||||
$('#tagged_mail_handler_none').prop('checked', false);
|
||||
} else if(template.tagged_mail_handler === "none"){
|
||||
$('#tagged_mail_handler_subfolder').prop('checked', false);
|
||||
$('#tagged_mail_handler_subject').prop('checked', false);
|
||||
$('#tagged_mail_handler_none').prop('checked', true);
|
||||
} else {
|
||||
$('#tagged_mail_handler_subfolder').prop('checked', false);
|
||||
$('#tagged_mail_handler_subject').prop('checked', false);
|
||||
$('#tagged_mail_handler_none').prop('checked', true);
|
||||
}
|
||||
|
||||
if (template.quarantine_notification === "never"){
|
||||
$('#quarantine_notification_never').prop('checked', true);
|
||||
$('#quarantine_notification_hourly').prop('checked', false);
|
||||
|
||||
Reference in New Issue
Block a user