some cleanup; hide ssl-related settings when ssl-usage is off when creating/updating domains; add database-update option to update-cli if files are already up-to-date
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$(function() {
|
||||
$(function () {
|
||||
|
||||
// disable unusable php-configuration by customer settings
|
||||
$('#customerid').on('change', function () {
|
||||
@@ -84,4 +84,24 @@ $(function() {
|
||||
$('#section_d').show();
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* ssl enabled domain - hide unnecessary/unused sections
|
||||
*/
|
||||
if ($('#id') && !$('#sslenabled').is(':checked')) {
|
||||
$('#section_bssl>.formfields>.row').not(":first").addClass("d-none");
|
||||
}
|
||||
|
||||
/**
|
||||
* toggle show/hide of sections in case of ssl enabled flag
|
||||
*/
|
||||
$('#sslenabled').on('click', function () {
|
||||
if ($(this).is(':checked')) {
|
||||
// show sections
|
||||
$('#section_bssl>.formfields>.row').removeClass("d-none");
|
||||
} else {
|
||||
// hide unnecessary sections
|
||||
$('#section_bssl>.formfields>.row').not(":first").addClass("d-none");
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user