Added hover event to help text

This commit is contained in:
bergware
2019-03-16 17:57:51 +01:00
parent 8533ed73fc
commit 69eb06119d
@@ -612,9 +612,9 @@ $(function() {
node = node.prev();
name = node.prop('nodeName').toLowerCase();
}
node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');}).hover(function(){delay=setTimeout(function(){$('#helpinfo'+i).show('slow');},1000);},function(){clearTimeout(delay);$('#helpinfo'+i).hide('slow');});
node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');clearTimeout(delay);delay=null;}).hover(function(){delay=setTimeout(function(){$('#helpinfo'+i).show('slow');},1000);},function(){if(delay){clearTimeout(delay);$('#helpinfo'+i).hide('slow');}});
} else {
if (node.html() && (name!='tr' || node.children('td:first').html())) node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');}).hover(function(){delay=setTimeout(function(){$('#helpinfo'+i).show('slow');},1000);},function(){clearTimeout(delay);$('#helpinfo'+i).hide('slow');});
if (node.html() && (name!='tr' || node.children('td:first').html())) node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');clearTimeout(delay);delay=null;}).hover(function(){delay=setTimeout(function(){$('#helpinfo'+i).show('slow');},1000);},function(){if(delay){clearTimeout(delay);$('#helpinfo'+i).hide('slow');}});
}
});
});