mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Wenn im Tempus die Tabelle stundenplan statt stundenplandev ausgewaehlt ist, dann wird dies in der Statusleiste rot markiert.
This commit is contained in:
+18
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user