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