Make Tab-showing configurable
take a look at /html/js/config,js
This commit is contained in:
parent
45060d5b0c
commit
c35bc26996
2 changed files with 32 additions and 1 deletions
|
@ -6,4 +6,12 @@ var debug = 1;
|
||||||
|
|
||||||
// Set messagecounters for different badge-colors
|
// Set messagecounters for different badge-colors
|
||||||
var warnlevel = 200;
|
var warnlevel = 200;
|
||||||
var emergencylevel = 500;
|
var emergencylevel = 500;
|
||||||
|
|
||||||
|
|
||||||
|
// 1 = show tab, 0 = suppress it
|
||||||
|
var showLastHeardTab = 1;
|
||||||
|
var showLocalHeadTab = 1;
|
||||||
|
var showInQSOTab = 1;
|
||||||
|
var showDAPNETMessagesTab = 1;
|
||||||
|
var showAboutTab = 1;
|
||||||
|
|
|
@ -332,3 +332,26 @@ function getDapnetMessages(document, event) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
if(showLastHeardTab == 0){
|
||||||
|
document.getElementById("myTab").children[0].style.display="none";
|
||||||
|
document.getElementById("lastheard").style.display="none";
|
||||||
|
}
|
||||||
|
if(showLocalHeadTab == 0){
|
||||||
|
document.getElementById("myTab").children[1].style.display="none";
|
||||||
|
document.getElementById("localheard").style.display="none";
|
||||||
|
}
|
||||||
|
if(showInQSOTab == 0){
|
||||||
|
document.getElementById("myTab").children[2].style.display="none";
|
||||||
|
document.getElementById("qso").style.display="none";
|
||||||
|
}
|
||||||
|
if(showDAPNETMessagesTab == 0){
|
||||||
|
document.getElementById("myTab").children[3].style.display="none";
|
||||||
|
document.getElementById("dapnet").style.display="none";
|
||||||
|
}
|
||||||
|
if(showAboutTab == 0){
|
||||||
|
document.getElementById("myTab").children[4].style.display="none";
|
||||||
|
document.getElementById("about").style.display="none";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue