Files
Facilitor/APPL/MGT/ins_tab_discipline.js
Jos Groot Lipman 28298e987c FSN#36083 Tijdens/na SCF modal onderliggende record highlighten
svn path=/Website/trunk/; revision=28946
2016-04-14 12:45:28 +00:00

36 lines
1.1 KiB
JavaScript

/*
$Revision$
$Id$
*/
function scf_reload (json, b, c)
{
FcltMgr.reload("scf_highlight=" + json.key);
}
function edit_rechten(row)
{
if (row instanceof Array)
var discKeyString = getKeyString(row);
else
var disc_key = row.getAttribute("ROWKEY");
if (window.functie_key > 0 && window.groep_key)
{
$("#ins_tab_discipline tbody tr").removeClass("updated editing");
$(row).addClass('editing');
var url = "fac_edit_groeprechten.asp?fac_groep={0}&fac_functie={1}&ins_discipline={2}".format(window.groep_key, window.functie_key, discKeyString||disc_key);
FcltMgr.openModalDetail(url, L("fac_groeprechten"), { callback: scf_reload });
}
else if (window.functie_key > 0)
{
var url = "appl/mgt/ins_tab_discipline.asp?mode=list&fac_groep=" + window.groep_key + "&fac_functie=" + window.functie_key;
FcltMgr.openDetail(url, { reuse: true });
}
else // eerst nog een functie erbij kiezen
{
var url = "appl/mgt/fac_functie.asp?ins_discipline=" + disc_key;
FcltMgr.openDetail(url, { reuse: true });
}
}