Page 1 of 1

refresh window when popup is closed

Posted: Wed Aug 29, 2018 7:53 pm
by deckoff
Hello.
I open a popup window :
nuPopup('5b6ef35b2854c7e',$('#Patients_id').val());
Image
What I want is, when the popup is closed
Image
the main form window to be refreshed :

Code: Select all

nuGetBreadcrumb()
to be run when the popup is closed
I would appreciate your help

Re: refresh window when popup is closed

Posted: Wed Aug 29, 2018 8:34 pm
by toms
Hi,

Place this code in the Javascript section of your popup form:

Code: Select all

if (nuFormType() == 'edit') {
    $('#dialogClose', parent.document).click(function(e) {
        parent.nuGetBreadcrumb();
    });
}

Re: refresh window when popup is closed

Posted: Wed Aug 29, 2018 11:43 pm
by deckoff
Works like a charm :)
Thanks!

Re: refresh window when popup is closed

Posted: Thu Aug 30, 2018 12:58 am
by admin
.