[Compose] Enable some minimal inits, change or remove some health checks
This commit is contained in:
@@ -67,7 +67,7 @@ $(document).ready(function() {
|
||||
var req_empty = false;
|
||||
$(this).closest("form").find('select, textarea, input').each(function() {
|
||||
if ($(this).prop('required')) {
|
||||
if (!$(this).val()) {
|
||||
if (!$(this).val() && $(this).prop('disabled') === false) {
|
||||
req_empty = true;
|
||||
$(this).addClass('inputMissingAttr');
|
||||
} else {
|
||||
@@ -126,7 +126,7 @@ $(document).ready(function() {
|
||||
var req_empty = false;
|
||||
$(this).closest("form").find('select, textarea, input').each(function() {
|
||||
if ($(this).prop('required')) {
|
||||
if (!$(this).val()) {
|
||||
if (!$(this).val() && $(this).prop('disabled') === false) {
|
||||
req_empty = true;
|
||||
$(this).addClass('inputMissingAttr');
|
||||
} else {
|
||||
|
@@ -1,3 +1,17 @@
|
||||
$(document).ready(function() {
|
||||
if ($("#goto_null").is(":checked")) {
|
||||
$('#textarea_alias_goto').prop('disabled', true);
|
||||
}
|
||||
$("#goto_null").click(function( event ) {
|
||||
if ($("#goto_null").is(":checked")) {
|
||||
$('#textarea_alias_goto').prop('disabled', true);
|
||||
}
|
||||
else {
|
||||
$("#textarea_alias_goto").removeAttr('disabled');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
jQuery(function($){
|
||||
// http://stackoverflow.com/questions/46155/validate-email-address-in-javascript
|
||||
function validateEmail(email) {
|
||||
|
@@ -30,6 +30,15 @@ $(document).ready(function() {
|
||||
$('#password2').val(random_passwd);
|
||||
});
|
||||
|
||||
$("#goto_null").click(function( event ) {
|
||||
if ($("#goto_null").is(":checked")) {
|
||||
$('#textarea_alias_goto').prop('disabled', true);
|
||||
}
|
||||
else {
|
||||
$("#textarea_alias_goto").removeAttr('disabled');
|
||||
}
|
||||
});
|
||||
|
||||
// Log modal
|
||||
$('#logModal').on('show.bs.modal', function(e) {
|
||||
var logText = $(e.relatedTarget).data('log-text');
|
||||
@@ -283,6 +292,9 @@ jQuery(function($){
|
||||
if (item.is_catch_all == 1) {
|
||||
item.address = '<div class="label label-default">Catch-All</div> ' + item.address;
|
||||
}
|
||||
if (item.goto == "null@localhost") {
|
||||
item.goto = '⤷ <span style="font-size:12px" class="glyphicon glyphicon-trash" aria-hidden="true"></span>';
|
||||
}
|
||||
if (item.in_primary_domain !== "") {
|
||||
item.domain = "↳ " + item.domain + " (" + item.in_primary_domain + ")";
|
||||
}
|
||||
|
Reference in New Issue
Block a user