Files
Facilitor/APPL/MGT/fac_functie.js
Jos Groot Lipman ffb2ad0547 FSN#36083 Tijdens/na SCF modal onderliggende record highlighten
svn path=/Website/trunk/; revision=28932
2016-04-13 19:45:18 +00:00

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 });
}
}