Open form twice
Posted: Wed Jan 09, 2019 6:01 am
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?
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');
}
}
Code: Select all
nuSelectBrowse = function (e, t){} //-- so that it doesn't run twice.
Code: Select all
if (e.ctrlKey == false) {
nuSelectBrowse = function (e, t) {} //-- so that it doesn't run twice.
}
Hi, in this case no jquery is executed from the editing part of the form. (for example I have some hidden fields when I use only click on the record, but .... they appear when I open the editing form using "Ctrl + click" on a record)kev1n wrote:Change:To:Code: Select all
nuSelectBrowse = function (e, t){} //-- so that it doesn't run twice.
Here:Code: Select all
if (e.ctrlKey == false) { nuSelectBrowse = function (e, t) {} //-- so that it doesn't run twice. }
https://github.com/steven-copley/nubuil ... m.js#L3771
By changing that, you can open as many records from a Browse Screen as you want.
@Steven: Could you include that?