Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

refresh window when popup is closed

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
deckoff
Posts: 17
Joined: Tue Jul 10, 2018 12:34 pm
Been thanked: 1 time

refresh window when popup is closed

Unread post 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
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: refresh window when popup is closed

Unread post 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();
    });
}
deckoff
Posts: 17
Joined: Tue Jul 10, 2018 12:34 pm
Been thanked: 1 time

Re: refresh window when popup is closed

Unread post by deckoff »

Works like a charm :)
Thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: refresh window when popup is closed

Unread post by admin »

.
Post Reply