cleanup + fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -782,15 +782,17 @@ function performLogManage() {
|
||||
}
|
||||
|
||||
// --------------------------------------------------------
|
||||
// scroll down the log areas
|
||||
function scrollDown()
|
||||
{
|
||||
setTimeout(() => {
|
||||
|
||||
var anchor = getUrlAnchor()
|
||||
|
||||
console.log(anchor)
|
||||
|
||||
if (anchor == "tab_Logging")
|
||||
{
|
||||
|
||||
setTimeout(() => {
|
||||
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++) {
|
||||
@@ -803,10 +805,11 @@ function scrollDown()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}, 55);
|
||||
|
||||
}
|
||||
|
||||
}, 100);
|
||||
|
||||
|
||||
}
|
||||
|
||||
// --------------------------------------------------------
|
||||
@@ -922,8 +925,7 @@ function initializeTabs () {
|
||||
window.onload = function asyncFooter()
|
||||
{
|
||||
initializeSelectedColumns();
|
||||
|
||||
|
||||
scrollDown();
|
||||
initializeTabs();
|
||||
|
||||
$("#lastCommit").append('<a href="https://github.com/jokob-sk/Pi.Alert/commits" target="_blank"><img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/jokob-sk/pi.alert/main?logo=github"></a>');
|
||||
@@ -935,7 +937,7 @@ window.onload = function asyncFooter()
|
||||
|
||||
// scroll to the latest log entrie sat teh bottom of the file
|
||||
|
||||
scrollDown();
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user