Added link to Vilesci Zeitwuensche in TEMPUS

Now, when rightclicking on 'Zeitwuensche einsehen' on a lector in Tempus,
the Vilesci Zeitwuensche of that lector is opened.
This commit is contained in:
Cris
2021-12-07 17:16:15 +01:00
parent 9c0da32841
commit 40871c73a0
3 changed files with 75 additions and 5 deletions
+23
View File
@@ -330,6 +330,29 @@ function onLektorSelect(event)
}
}
function LektorFunktionLoadZeitwunschAdminUrl(){
var treeLektor = document.getElementById('tree-lektor');
var col = treeLektor.columns ? treeLektor.columns["uid"] : "uid";
try
{
var uid = treeLektor.view.getCellText(treeLektor.currentIndex,col);
}
catch(e)
{
}
if (uid == '' || uid == undefined)
{
alert('LektorIn auswählen, um Zeitwünsche einsehen zu können.');
return;
}
else
{
window.open('<?php echo APP_ROOT ?>vilesci/personen/zeitwunsch.php?uid=' + uid);
}
}
function loadURL(event)
{
var contentFrame = document.getElementById('contentFrame');