Page 1 of 1

Open form twice

PostPosted: Wed Jan 09, 2019 2:31 pm
by Martin
Hello, I'm trying to open the same form twice. I open the first one with ctrl+click. This opens iit in a new tab. If I then click on the same Run Button again, nothing happens. Bug?

Re: Open form twice

PostPosted: Fri Jan 11, 2019 2:26 pm
by Martin
Found the reason: nuStopClick(event);

This function prevents a button from being clicked a second time. However, if the ctrl key is pressed, this function should not be called.

FIX for nuStopClick

PostPosted: Fri Jan 11, 2019 11:56 pm
by kev1n
Add to Setup/header this fix:

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');
   }   
}