mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-10-05 00:06:01 -04:00
Remove debug console.log() lines
This commit is contained in:
parent
9133b9899c
commit
8978a9ad79
@ -715,7 +715,6 @@ jQuery(function($){
|
|||||||
$('.app_hide').off('change');
|
$('.app_hide').off('change');
|
||||||
$('.app_hide').on('change', function (e) {
|
$('.app_hide').on('change', function (e) {
|
||||||
var value = $(this).is(':checked') ? '1' : '0';
|
var value = $(this).is(':checked') ? '1' : '0';
|
||||||
console.log(value)
|
|
||||||
$(this).parent().children(':first-child').val(value);
|
$(this).parent().children(':first-child').val(value);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,6 @@ $(document).ready(function() {
|
|||||||
window.fetch("/api/v1/get/status/host/ip", { method:'GET', cache:'no-cache' }).then(function(response) {
|
window.fetch("/api/v1/get/status/host/ip", { method:'GET', cache:'no-cache' }).then(function(response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
}).then(function(data) {
|
}).then(function(data) {
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
// display host ips
|
// display host ips
|
||||||
if (data.ipv4)
|
if (data.ipv4)
|
||||||
$("#host_ipv4").text(data.ipv4);
|
$("#host_ipv4").text(data.ipv4);
|
||||||
@ -1007,7 +1005,7 @@ jQuery(function($){
|
|||||||
"data-order": cellData.sortBy,
|
"data-order": cellData.sortBy,
|
||||||
"data-sort": cellData.sortBy
|
"data-sort": cellData.sortBy
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
render: function (data) {
|
render: function (data) {
|
||||||
return data.value;
|
return data.value;
|
||||||
}
|
}
|
||||||
@ -1032,7 +1030,7 @@ jQuery(function($){
|
|||||||
"data-order": cellData.sortBy,
|
"data-order": cellData.sortBy,
|
||||||
"data-sort": cellData.sortBy
|
"data-sort": cellData.sortBy
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
render: function (data) {
|
render: function (data) {
|
||||||
return data.value;
|
return data.value;
|
||||||
}
|
}
|
||||||
@ -1347,9 +1345,6 @@ function update_stats(timeout=5){
|
|||||||
|
|
||||||
window.fetch("/api/v1/get/status/host", {method:'GET',cache:'no-cache'}).then(function(response) {
|
window.fetch("/api/v1/get/status/host", {method:'GET',cache:'no-cache'}).then(function(response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
}).then(function(data) {
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
if (data){
|
if (data){
|
||||||
// display table data
|
// display table data
|
||||||
$("#host_date").text(data.system_time);
|
$("#host_date").text(data.system_time);
|
||||||
@ -1399,8 +1394,6 @@ function update_container_stats(timeout=5){
|
|||||||
var diskIOCtx = Chart.getChart(container + "_DiskIOChart");
|
var diskIOCtx = Chart.getChart(container + "_DiskIOChart");
|
||||||
var netIOCtx = Chart.getChart(container + "_NetIOChart");
|
var netIOCtx = Chart.getChart(container + "_NetIOChart");
|
||||||
|
|
||||||
console.log(container);
|
|
||||||
console.log(data);
|
|
||||||
prev_stats = null;
|
prev_stats = null;
|
||||||
if (data.length >= 2){
|
if (data.length >= 2){
|
||||||
prev_stats = data[data.length -2];
|
prev_stats = data[data.length -2];
|
||||||
|
@ -66,7 +66,6 @@ $(document).ready(function() {
|
|||||||
// load tags
|
// load tags
|
||||||
if ($('#tags').length){
|
if ($('#tags').length){
|
||||||
var tagsEl = $('#tags').parent().find('.tag-values')[0];
|
var tagsEl = $('#tags').parent().find('.tag-values')[0];
|
||||||
console.log($(tagsEl).val())
|
|
||||||
var tags = JSON.parse($(tagsEl).val());
|
var tags = JSON.parse($(tagsEl).val());
|
||||||
$(tagsEl).val("");
|
$(tagsEl).val("");
|
||||||
|
|
||||||
|
@ -169,7 +169,6 @@ jQuery(function($){
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: "/api/v1/get/time_limited_aliases",
|
url: "/api/v1/get/time_limited_aliases",
|
||||||
dataSrc: function(data){
|
dataSrc: function(data){
|
||||||
console.log(data);
|
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
if (acl_data.spam_alias === 1) {
|
if (acl_data.spam_alias === 1) {
|
||||||
item.action = '<div class="btn-group">' +
|
item.action = '<div class="btn-group">' +
|
||||||
@ -262,7 +261,6 @@ jQuery(function($){
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/api/v1/get/syncjobs/' + encodeURIComponent(mailcow_cc_username) + '/no_log',
|
url: '/api/v1/get/syncjobs/' + encodeURIComponent(mailcow_cc_username) + '/no_log',
|
||||||
dataSrc: function(data){
|
dataSrc: function(data){
|
||||||
console.log(data);
|
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
item.user1 = escapeHtml(item.user1);
|
item.user1 = escapeHtml(item.user1);
|
||||||
item.log = '<a href="#syncjobLogModal" data-bs-toggle="modal" data-syncjob-id="' + item.id + '">' + lang.open_logs + '</a>'
|
item.log = '<a href="#syncjobLogModal" data-bs-toggle="modal" data-syncjob-id="' + item.id + '">' + lang.open_logs + '</a>'
|
||||||
@ -418,7 +416,6 @@ jQuery(function($){
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/api/v1/get/app-passwd/all',
|
url: '/api/v1/get/app-passwd/all',
|
||||||
dataSrc: function(data){
|
dataSrc: function(data){
|
||||||
console.log(data);
|
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
item.name = escapeHtml(item.name)
|
item.name = escapeHtml(item.name)
|
||||||
item.protocols = []
|
item.protocols = []
|
||||||
@ -514,7 +511,6 @@ jQuery(function($){
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/api/v1/get/policy_wl_mailbox',
|
url: '/api/v1/get/policy_wl_mailbox',
|
||||||
dataSrc: function(data){
|
dataSrc: function(data){
|
||||||
console.log(data);
|
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
if (validateEmail(item.object)) {
|
if (validateEmail(item.object)) {
|
||||||
item.chkbox = '<input type="checkbox" class="form-check-input" data-id="policy_wl_mailbox" name="multi_select" value="' + item.prefid + '" />';
|
item.chkbox = '<input type="checkbox" class="form-check-input" data-id="policy_wl_mailbox" name="multi_select" value="' + item.prefid + '" />';
|
||||||
@ -585,7 +581,6 @@ jQuery(function($){
|
|||||||
type: "GET",
|
type: "GET",
|
||||||
url: '/api/v1/get/policy_bl_mailbox',
|
url: '/api/v1/get/policy_bl_mailbox',
|
||||||
dataSrc: function(data){
|
dataSrc: function(data){
|
||||||
console.log(data);
|
|
||||||
$.each(data, function (i, item) {
|
$.each(data, function (i, item) {
|
||||||
if (validateEmail(item.object)) {
|
if (validateEmail(item.object)) {
|
||||||
item.chkbox = '<input type="checkbox" class="form-check-input" data-id="policy_bl_mailbox" name="multi_select" value="' + item.prefid + '" />';
|
item.chkbox = '<input type="checkbox" class="form-check-input" data-id="policy_bl_mailbox" name="multi_select" value="' + item.prefid + '" />';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user