Wenn im Tempus die Tabelle stundenplan statt stundenplandev ausgewaehlt ist, dann wird dies in der Statusleiste rot markiert.

This commit is contained in:
Andreas Österreicher
2009-04-01 15:12:22 +00:00
parent cb60bb3b75
commit 1b8af2933e
+18 -1
View File
@@ -130,7 +130,7 @@ function stpltableChange(db_stpl_table)
document.getElementById("statusbarpanel-text").label = "Tabelle erfolgreich geaendert";
document.getElementById("statusbarpanel-db_table").label = db_stpl_table;
}
updatedbstpltable();
return true;
}
@@ -264,6 +264,8 @@ function variableChange(variable, id, wert)
{
if(variable=='ignore_kollision')
updateignorekollision();
if(variable=='db_stpl_table')
updateidbstpltable();
//Statusbar setzen
document.getElementById("statusbarpanel-text").label = "Variable erfolgreich geaendert";
}
@@ -288,6 +290,21 @@ function updateignorekollision()
}
}
// markiert den eintrag in der statusleiste rot wenn auf die
// echte stpl tabelle zugegriffen wird
function updatedbstpltable()
{
var panel = document.getElementById('statusbarpanel-db_table');
if(panel.label=='stundenplan')
{
panel.style.backgroundColor='red';
}
else
{
panel.style.backgroundColor='';
}
}
function getvariable(variable)
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");