|
@@ -162,17 +162,6 @@ $(document).ready(function() {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- // @selecting identity provider mbox_add_modal
|
|
|
- $('#mbox_add_iam').on('change', function(){
|
|
|
- // toggle password fields
|
|
|
- if (this.value === 'mailcow'){
|
|
|
- $('#mbox_add_pwds').removeClass('d-none');
|
|
|
- $('#mbox_add_pwds').find('.form-control').prop('required', true);
|
|
|
- } else {
|
|
|
- $('#mbox_add_pwds').addClass('d-none');
|
|
|
- $('#mbox_add_pwds').find('.form-control').prop('required', false);
|
|
|
- }
|
|
|
- });
|
|
|
// Sieve data modal
|
|
|
$('#sieveDataModal').on('show.bs.modal', function(e) {
|
|
|
var sieveScript = $(e.relatedTarget).data('sieve-script');
|
|
@@ -280,15 +269,6 @@ $(document).ready(function() {
|
|
|
}
|
|
|
function setMailboxTemplateData(template){
|
|
|
$("#addInputQuota").val(template.quota / 1048576);
|
|
|
- $('#mbox_add_iam').selectpicker('val', template.authsource);
|
|
|
- // toggle password fields
|
|
|
- if (!template.authsource || template.authsource === 'mailcow'){
|
|
|
- $('#mbox_add_pwds').removeClass('d-none');
|
|
|
- $('#mbox_add_pwds').find('.form-control').prop('required', true);
|
|
|
- } else {
|
|
|
- $('#mbox_add_pwds').addClass('d-none');
|
|
|
- $('#mbox_add_pwds').find('.form-control').prop('required', false);
|
|
|
- }
|
|
|
|
|
|
if (template.quarantine_notification === "never"){
|
|
|
$('#quarantine_notification_never').prop('checked', true);
|
|
@@ -1291,15 +1271,6 @@ jQuery(function($){
|
|
|
data: 'attributes.quota',
|
|
|
defaultContent: '',
|
|
|
},
|
|
|
- {
|
|
|
- title: lang.iam,
|
|
|
- data: 'attributes.authsource',
|
|
|
- defaultContent: '',
|
|
|
- render: function (data, type) {
|
|
|
- data = data ? '<span class="badge bg-primary">' + data + '<i class="ms-2 bi bi-person-circle"></i></i></span>' : '<i class="bi bi-x-lg"></i>';
|
|
|
- return data;
|
|
|
- }
|
|
|
- },
|
|
|
{
|
|
|
title: lang.tls_enforce_in,
|
|
|
data: 'attributes.tls_enforce_in',
|