33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
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?fac_groep=" + groep_key + "&fac_functie=" + grpData.functie_key;
|
|
FcltMgr.openDetail(url, { reuse: true });
|
|
}
|
|
else if (grpData.functie_key > 0)
|
|
{
|
|
var url = "fac_edit_groeprechten.asp?fac_groep={0}&fac_functie={1}&ins_discipline={2}".format(groep_key, grpData.functie_key, grpData.disc_key);
|
|
FcltMgr.openModalDetail(url, L("fac_groeprechten"), { callback: FcltCallbackRefresh });
|
|
}
|
|
else // eerst nog een functie erbij kiezen
|
|
{
|
|
var url = "appl/mgt/fac_functie.asp?fac_groep=" + groep_key;
|
|
FcltMgr.openDetail(url, { reuse: true });
|
|
}
|
|
}
|
|
|
|
function edit_groep(row)
|
|
{
|
|
var groep_key = row.getAttribute("ROWKEY");
|
|
var url = "appl/mgt/fac_groep.asp?mode=wrap&id=" + groep_key;
|
|
FcltMgr.openDetail(url, { reuse: true });
|
|
} |