Code: Select all
function nuSelectBrowse(e, t) {
let r = $(e.target).attr('data-nu-primary-key');
let PullOID = /data-nu-primary-key="([0-9]+)/;
if(Number.isInteger(Number(r))){
nuRunPHPHiddenWithParams('BrowseOrderTypeLookup', 'OrderID', r);
}else if(typeof t !== 'undefined' && 'outerHTML' in t){
let PKMatch = t.outerHTML.match(PullOID);
nuRunPHPHiddenWithParams('BrowseOrderTypeLookup', 'OrderID', PKMatch[1]);
}
}
Code: Select all
nuForm('$FormID', '$OrderID', '', '', 0); var nuSelectBrowse = function(e, t){};
My problem is that clicking on the red search text throws an uncaught type error (if you click on the second word searched ex: "Web order 98" errors if you click on order) and then adds extra breadcrumbs if you click any of the red text.
Any ideas how to stop the extra breadcrumbs?