added HostingPlans ApiCommand + unit-tests

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-09-16 12:31:02 +02:00
parent aca22a9c94
commit 75f49e2ee2
4 changed files with 673 additions and 248 deletions

View File

@@ -31,7 +31,7 @@ $(document).ready(function() {
dataType: "json",
success: function(json) {
for (var i in json) {
if (i == 'email_imap' || i == 'email_pop3' || i == 'perlenabled' || i == 'phpenabled' || i == 'dnsenabled') {
if (i == 'email_imap' || i == 'email_pop3' || i == 'perlenabled' || i == 'phpenabled' || i == 'dnsenabled' || i == 'logviewenabled') {
/** handle checkboxes **/
if (json[i] == 1) {
$("input[name='"+i+"']").prop('checked', true);