Missing Logout Button & Click Event ignored

Questions related to using nuBuilder Forte.

Missing Logout Button & Click Event ignored

Postby Timo » Fri Oct 11, 2019 3:15 am

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: 199
Joined: Fri Mar 16, 2018 5:56 am

Re: Missing Logout Button & Click Event ignored

Postby Timo » Thu Oct 17, 2019 1:04 am

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?
Timo
 
Posts: 199
Joined: Fri Mar 16, 2018 5:56 am

Re: Missing Logout Button & Click Event ignored

Postby kev1n » Thu Oct 17, 2019 2:51 pm

I posted a fix for 2) in January:

viewtopic.php?f=19&t=9780&p=18544&hilit=nustopclick#p18544


@Steven: Can this be included in the nuBuilder?
kev1n
 
Posts: 530
Joined: Mon Oct 15, 2018 2:13 am

Re: Missing Logout Button & Click Event ignored

Postby Timo » Fri Oct 18, 2019 1:12 am

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?
Timo
 
Posts: 199
Joined: Fri Mar 16, 2018 5:56 am

Re: Missing Logout Button & Click Event ignored

Postby admin » Fri Oct 18, 2019 7:50 am

Guys,

It will be in the next Update.


Steven
admin
Site Admin
 
Posts: 3226
Joined: Mon Jun 15, 2009 9:53 am


Return to General