diff --git a/front/js/pialert_common.js b/front/js/pialert_common.js index 908cc1e8..8f476344 100755 --- a/front/js/pialert_common.js +++ b/front/js/pialert_common.js @@ -173,8 +173,6 @@ function getSetting (key) { function cacheStrings() { - console.log("aaaaaaaaaaaaaaaaaaaaaa") - // handle core strings and translations var allLanguages = ["en_us", "es_es", "de_de", "fr_fr", "ru_ru", "nb_no"]; // needs to be same as in lang.php @@ -1066,8 +1064,6 @@ function executeOnce() { if (!pialert_common_init) { - console.log("ffffffffffffffffffffffffffffffffffffff") - showSpinner() // Your initialization code here diff --git a/front/maintenance.php b/front/maintenance.php index 88a66367..067a011d 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -782,31 +782,34 @@ function performLogManage() { } // -------------------------------------------------------- +// scroll down the log areas function scrollDown() { - var anchor = getUrlAnchor() - + setTimeout(() => { - if (anchor == "tab_Logging") - { + var anchor = getUrlAnchor() - setTimeout(() => { + console.log(anchor) + + if (anchor == "tab_Logging") + { var areaIDs = ['pialert_log', 'pialert_front_log', 'IP_changes_log', 'stdout_log', 'stderr_log', 'pialert_pholus_log', 'pialert_pholus_lastrun_log', 'pialert_php_log']; - for (let i = 0; i < areaIDs.length; i++) { + for (let i = 0; i < areaIDs.length; i++) { + + var tempArea = $('#' + areaIDs[i]); + + if (tempArea.length > 0) + { + $(tempArea[0]).scrollTop(tempArea[0].scrollHeight); + } - var tempArea = $('#' + areaIDs[i]); - - if (tempArea.length > 0) - { - $(tempArea[0]).scrollTop(tempArea[0].scrollHeight); } - } - - }, 55); - } + }, 100); + + } // -------------------------------------------------------- @@ -922,8 +925,7 @@ function initializeTabs () { window.onload = function asyncFooter() { initializeSelectedColumns(); - - + scrollDown(); initializeTabs(); $("#lastCommit").append('GitHub last commit'); @@ -935,7 +937,7 @@ window.onload = function asyncFooter() // scroll to the latest log entrie sat teh bottom of the file -scrollDown(); +