1
0

small js fix and renaming

This commit is contained in:
Ian
2012-06-05 19:11:46 +02:00
parent c48e8d3860
commit 5f9d9d7690

View File

@ -14,19 +14,19 @@ window.log = function f(){ log.history = log.history || []; log.history.push(arg
// - templates/default/admin/default_staticpage_backend.tpl
function showConfig(id) {
if (document.getElementById) {
dlm = document.getElementById(id);
if (dlm.style.display == 'none') {
plugbox = document.getElementById(id);
if (plugbox.style.display == 'none') {
document.getElementById('option' + id).src = img_minus;
dlm.style.display = '';
plugbox.style.display = '';
} else {
document.getElementById('option' + id).src = img_plus;
dlm.style.display = 'none';
plugbox.style.display = 'none';
}
}
}
var state='';
function showConfigAll(count) {
var state='';
if (document.getElementById) {
for (i = 1; i <= count; i++) {
document.getElementById('el' + i).style.display = state;