mirror of
https://github.com/unraid/webgui.git
synced 2026-03-07 18:39:27 -06:00
Revert "Added hover event to help text"
This reverts commit ac8e853e4c.
This commit is contained in:
@@ -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');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(){clickHelp(i);}).hover(function(){hoverOnHelp(i);},function(){hoveOffHelp(i);});
|
||||
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');}});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user