33 lines
1.5 KiB
JavaScript
33 lines
1.5 KiB
JavaScript
/*
|
|
$Revision: 1 $
|
|
$Modtime: 14-09-09 12:13 $
|
|
*/
|
|
function updateDisc(purole, pautfunction, pdisc_str, pstdm_str)
|
|
{
|
|
var lsrtdis_key = $('#srtdisc :selected').val();
|
|
$("#discdiv").load("../Shared/loadDisc.asp?urole=" + purole
|
|
+ "&autfunction=" + pautfunction
|
|
+ "&srtdisc_key=" + lsrtdis_key
|
|
//+ "&module=mld"
|
|
+ (pdisc_str? "&disc_key_str=" + pdisc_str : ""),
|
|
function ()
|
|
{
|
|
// Laad de stdmeldingen
|
|
// Selecteer eventueel de initiële stdmeldingen die meegegeven kunnen worden
|
|
updateStdm(purole, pautfunction, pstdm_str);
|
|
});
|
|
}
|
|
|
|
function updateStdm(purole, pautfunction, pstdm_str)
|
|
{
|
|
var ldisc_key_str = new Array();
|
|
$('#discmulti :selected').each(function(i, selected)
|
|
{
|
|
ldisc_key_str[i] = $(selected).val();
|
|
});
|
|
$("#stdmdiv").load("../Shared/loadStdmelding.asp?urole=" + purole
|
|
+ "&autfunction=" + pautfunction
|
|
+ (ldisc_key_str != ""? "&disc_key_str=" + ldisc_key_str : "")
|
|
+ (pstdm_str? "&stdm_str=" + pstdm_str : ""));
|
|
}
|