Hi,
I think that using this function all the time can cause performance issue, so I recommend to add kind of option to refresh parent list or not.
Solution will work only if you're displaying actitives in Pop-ups.
- Add option to request_status_change.htmpl form (remove checked attribute to make it defaultly unchekecked)
detailRowHdr("Refresh list", 1);
detailSetRowData("<input type='checkbox' id='REFRESH_PARENT_LIST' checked>");
- Add refresh function to request_status_change.htmpl form
function refreshParentList() {
if (document.getElementById('REFRESH_PARENT_LIST').checked) {
parent.opener.location.reload();
}
}
- Add refresh function to body's unload actions
<body onload="load_from_scratchpad('0')" onunload="unload_check();refreshParentList();" class="editform">
Regards,
cdtj