26 lines
808 B
JavaScript
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 });
|
|
}
|
|
|
|
} |