Set domain to filter by default when creating new mailbox (#3887)
parent
96616e6973
commit
36f296d9d6
|
@ -125,6 +125,18 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
// Add Mailbox Modal
|
||||||
|
var addMailboxModalShown = false;
|
||||||
|
$('#addMailboxModal').on('show.bs.modal', function(e) {
|
||||||
|
if (addMailboxModalShown) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
addMailboxModalShown = true;
|
||||||
|
var $domainSelect = $("#mailbox_table select");
|
||||||
|
if ($domainSelect[0].selectedIndex > 0) { // not "All Domains"
|
||||||
|
$("#addSelectDomain").val($domainSelect.val()).change().selectpicker("render");
|
||||||
|
}
|
||||||
|
});
|
||||||
// Log modal
|
// Log modal
|
||||||
$('#dnsInfoModal').on('show.bs.modal', function(e) {
|
$('#dnsInfoModal').on('show.bs.modal', function(e) {
|
||||||
var domain = $(e.relatedTarget).data('domain');
|
var domain = $(e.relatedTarget).data('domain');
|
||||||
|
|
Loading…
Reference in New Issue