Welcome to the nuBuilder Forums!

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

Missing Logout Button & Click Event ignored

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Missing Logout Button & Click Event ignored

Unread post by Timo »

HI,

I would like to open a form several times. There is the convenient function that allows you to open a form in a new tab by holding down the control key and clicking on a button.
¨
Two things I noticed:

1) The logout button is missing on the new page. Can it be added?

2) If I click the button again, nothing happens. Another tab should open. I think the reason is that nuStopClick(event); is added. But this should not be added when the Ctrl key is pressed.
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Missing Logout Button & Click Event ignored

Unread post by Timo »

1) The logout button is missing on the new page. Can it be added?
Is there perhaps a way to add this missing logout button via Javascript?

2) If I click the button again, nothing happens. Another tab should open. I think the reason is that nuStopClick(event); is added. But this should not be added when the Ctrl key is pressed.
Is there any other way to open a form more than once so that it is displayed in different tabs?
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Missing Logout Button & Click Event ignored

Unread post by kev1n »

I posted a fix for 2) in January:

https://forums.nubuilder.cloud/viewtopic. ... ick#p18544


@Steven: Can this be included in the nuBuilder?
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Missing Logout Button & Click Event ignored

Unread post by Timo »

Thank you kevin, works great to open a form several times!

Code: Select all

// FIX: Ctrl + clicking a button will not disable the click event
function nuStopClick(e){
   if(window.nuCLICKER != '' && e.ctrlKey == false ){
      $(e.target).prop('onclick',null).off('click');
   }   
}
And yes, please add this patch to nuBuilder !

Do you have an answer for my first question?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Missing Logout Button & Click Event ignored

Unread post by admin »

Guys,

It will be in the next Update.


Steven
Post Reply