Merge pull request #474 from bergware/master

Revert "Added hover event to help text"
This commit is contained in:
tom mortensen
2019-03-21 09:44:29 -07:00
committed by GitHub

View File

@@ -85,7 +85,6 @@ var before = new Date();
// page timer events
var timers = {};
var delay = null;
function pauseEvents(id){
$.each(timers, function(i, timer) {
@@ -460,17 +459,6 @@ echo "</span></div>";
// Firefox specific workaround
if (typeof InstallTrigger!=='undefined') $('#nav-block').addClass('mozilla');
function clickHelp(i) {
clearTimeout(delay);
$('#helpinfo'+i).toggle('slow');
delay = (delay==-1 ? null : -1);
}
function hoverOnHelp(i) {
if (delay!=-1) {delay=setTimeout(function(){$('#helpinfo'+i).show('slow');},1250);}
}
function hoverOffHelp(i) {
if (delay!=-1) {clearTimeout(delay); $('#helpinfo'+i).hide('slow');}
}
function parseINI(data){
var regex = {
section: /^\s*\[\s*\"*([^\]]*)\s*\"*\]\s*$/,
@@ -624,9 +612,9 @@ $(function() {
node = node.prev();
name = node.prop('nodeName').toLowerCase();
}
node.css('cursor','help').click(function(){clickHelp(i);}).hover(function(){hoverOnHelp(i);},function(){hoverOffHelp(i);});
node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');});
} else {
if (node.html() && (name!='tr' || node.children('td:first').html())) node.css('cursor','help').click(function(){clickHelp(i);}).hover(function(){hoverOnHelp(i);},function(){hoverOffHelp(i);});
if (node.html() && (name!='tr' || node.children('td:first').html())) node.css('cursor','help').click(function(){$('#helpinfo'+i).toggle('slow');});
}
});
});