Files
Facilitor/APPL/MGT/fac_groep.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
810 B
JavaScript

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