7,15d6 < < function makeDelayedHandler(f, time){ // Delay execution of event handler function "f" by "time" ms, thanks to https://stackoverflow.com/questions/3048005/document-onclick-settimeout-function-javascript-help < return function(e){ < var ev = e || window.event; < setTimeout(function(){ < f(ev); < }, time); < }; < } 17,33d7 < function checkds(e) { < var ois = (e && e.target) || (event && event.srcElement); < var dpp=ois.getAttribute('data-preid').replace(/^null$/g, '').replace(/^undefined$/g, ''); < var dld=ois.getAttribute('data-lastid').replace(/^null$/g, '').replace(/^undefined$/g, ''); < if (ois.parentElement && ois.outerHTML.toLowerCase().indexOf(' inelems[iplj].onclick = function(evt) { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } 73,78c43 < if (1 == 1) { < inelems[iplj].onclick = makeDelayedHandler(checkds, 5000); < } else { < inelems[iplj].onclick = function(evt) { if (('' + evt.target.getAttribute('open')).replace(/^null$/g, '').replace(/^undefined$/g, '').replace(/^false$/g, '') != '') { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } } < } < //inelems[iplj].onclick = function(evt) { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } --- > inelems[iplj].onclick = function(evt) { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } 95,99c60 < if (1 == 1) { < inelems[iplj].onclick = makeDelayedHandler(checkds, 5000); < } else { < inelems[iplj].onclick = function(evt) { if (('' + evt.target.getAttribute('open')).replace(/^null$/g, '').replace(/^undefined$/g, '').replace(/^false$/g, '') != '') { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } } < } --- > inelems[iplj].onclick = function(evt) { if (('' + evt.target.getAttribute('open')).replace(/^null$/g, '').replace(/^undefined$/g, '').replace(/^false$/g, '') != '') { location.href='#' + evt.target.getAttribute('data-preid'); location.href='#' + evt.target.getAttribute('data-lastid'); } }