Welcome to the nuBuilder Forums!

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

nuClosePopup function - possible bug

Questions related to using nuBuilder Forte.
Post Reply
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

nuClosePopup function - possible bug

Unread post by gerese »

To Mr. Guru Kev1n,

What I found: The procedure defined by me nuRunPHPHidden ("AddCmd", 0); must be added twice to run once, if followed by nuClosePopup ();

Code: Select all

function nuSelectBrowse(e){ 
        var r = $('#' + e.target.id).attr('data-nu-primary-key');
        nuSetProperty('ECHIPLUCRARE_ID', r);
        
        nuRunPHPHidden("AddCmd", 0);
        
        nuRunPHPHidden("AddCmd", 0);
        
        
        nuClosePopup();

    }
Animation.gif
11-26-2021_211049_nuBuilder_backup.sql.gzip
You do not have the required permissions to view the files attached to this post.
nuBuilderForte .... BIG Like !!!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: nuClosePopup function - possible bug

Unread post by kev1n »

Hi,

I am not sure why it behaves this way. Closing the popup via nuJavascriptCallback() in the procedure should fix it.

nuSelectBrowse:

Code: Select all

function nuSelectBrowse(e){ 
        var r = $('#' + e.target.id).attr('data-nu-primary-key');
        nuSetProperty('ECHIPLUCRARE_ID', r);
        nuRunPHPHidden("AddCmd", 0);
}
AddCmd Procedure:

Code: Select all

nuDebug(nuHash());
nuJavascriptCallback("nuClosePopup();");
Post Reply