@@ -22,7 +22,6 @@
|
||||
|
||||
var groep_key = getQParamInt("fac_groep", -1);
|
||||
var disc_key = getQParamInt("ins_discipline", -1);
|
||||
var show_all = getQParam("complete", "off") == "on";
|
||||
var model = new model_fac_functie(null, { groep_key: groep_key, disc_key: disc_key });
|
||||
|
||||
if (editmode == 1)
|
||||
@@ -37,15 +36,6 @@
|
||||
}
|
||||
model.REST_PUT = generic_REST_PUT(model);
|
||||
}
|
||||
else if (mode == "list" && !show_all)
|
||||
{
|
||||
var currWhere = model.gparams.GET.wheres || [];
|
||||
currWhere.push("fac_functie_volgnr IS NOT NULL");
|
||||
|
||||
var gparams = { "GET": { "wheres": currWhere } };
|
||||
model.REST_PUT = generic_REST_PUT(model);
|
||||
model.REST_GET = generic_REST_GET(model, gparams);
|
||||
}
|
||||
|
||||
settings.overrule_setting("qp_maxrows", 250); // Toon alle 192 (DB31) functies direct
|
||||
|
||||
@@ -105,10 +95,6 @@
|
||||
else
|
||||
{
|
||||
scf_params.list.default_action = "edit_rechten";
|
||||
scf_params.search.show_filters =
|
||||
function () {
|
||||
RWCHECKBOXTR("complete", "fldcheck", L("fac_functie_show_all"), false);
|
||||
};
|
||||
}
|
||||
|
||||
if (mode == "search" && groep_key > 0) // Als er al rechten zijn, tonen we default alleen geauthoriseerde functies
|
||||
|
||||
Reference in New Issue
Block a user