31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
/*
|
|
$Revision$
|
|
$Id$
|
|
*/
|
|
|
|
function scf_reload (json, b, c)
|
|
{
|
|
FcltMgr.reload("scf_highlight=" + json.key);
|
|
}
|
|
|
|
function edit_rechten(row)
|
|
{
|
|
var functie_key = row.getAttribute("ROWKEY");
|
|
var funData = eval("(" + row.getAttribute("ROWDATA") + ")");
|
|
|
|
if (window.groep_key > 0 && funData.funcdisc) // naar het overzicht per discipline
|
|
{
|
|
var url = "appl/mgt/ins_tab_discipline.asp?fac_groep=" + window.groep_key + "&fac_functie=" + functie_key;
|
|
FcltMgr.openDetail(url, { reuse: true });
|
|
}
|
|
else if (window.groep_key > 0)
|
|
{
|
|
var url = "fac_edit_groeprechten.asp?fac_groep={0}&fac_functie={1}".format(window.groep_key, functie_key);
|
|
FcltMgr.openModalDetail(url, L("fac_groeprechten"), { callback: scf_reload });
|
|
}
|
|
else // eerst nog een groep erbij kiezen
|
|
{
|
|
var url = "appl/mgt/fac_groep.asp?fac_functie=" + functie_key + "&ins_discipline=" + window.disc_key;
|
|
FcltMgr.openDetail(url, { reuse: true });
|
|
}
|
|
} |