Files
Facilitor/APPL/MGT/fac_functie.js
Jos Groot Lipman e0545a6ca4 FSN#35817 Autorisaties via API2/Scaffolding
svn path=/Website/trunk/; revision=28548
2016-03-21 09:02:54 +00:00

26 lines
808 B
JavaScript

/*
$Revision$
$Id$
*/
function edit_rechten(row)
{
var functie_key = row.getAttribute("ROWKEY");
var funData = eval("(" + row.getAttribute("ROWDATA") + ")");
if (funData.groep_key > 0 && funData.funcdisc) // naar het overzicht per discipline
{
var url = "appl/mgt/ins_tab_discipline.asp?mode=list&fac_groep=" + funData.groep_key + "&fac_functie=" + functie_key;
FcltMgr.openDetail(url, { reuse: true });
}
else if (funData.groep_key > 0)
{
alert("Todo: rechten popupje groep {0} functie {1}".format(funData.groep_key, functie_key));
}
else // eerst nog een groep erbij kiezen
{
var url = "appl/mgt/fac_groep.asp?fac_functie=" + functie_key;
FcltMgr.openDetail(url, { reuse: true });
}
}