Index: lams_gradebook/web/includes/jsp/jqGridIncludes.jsp =================================================================== diff -u -r033346e575fe3604ea0282435914e0f8ae74fbc3 -r5ec41d4ed4459b29690d8e575899f85cf0558460 --- lams_gradebook/web/includes/jsp/jqGridIncludes.jsp (.../jqGridIncludes.jsp) (revision 033346e575fe3604ea0282435914e0f8ae74fbc3) +++ lams_gradebook/web/includes/jsp/jqGridIncludes.jsp (.../jqGridIncludes.jsp) (revision 5ec41d4ed4459b29690d8e575899f85cf0558460) @@ -63,83 +63,6 @@ // --------------------------------------------------------------------- - - // Applies tooltips to a jqgrid - function toolTip(gRowObject, tooltipDiv) { - var my_tooltip = null; // Div created for tooltip - if ( tooltipDiv != undefined && tooltipDiv.length > 0 ) - my_tooltip = $('#'+tooltipDiv); - else - my_tooltip = $('#tooltip'); - gRowObject.css({ - cursor: 'pointer' - }).mouseover(function(kmouse){ - if (checkCell(kmouse)) { - showToolTip(my_tooltip, kmouse); - //setTimeout(function(){showToolTip(my_tooltip, kmouse);}, 1000); - } - }).mousemove(function(kmouse){ - if (checkCell(kmouse)) { - moveToolTipBox(my_tooltip, kmouse); - //setTimeout(function(){moveToolTipBox(my_tooltip, kmouse);}, 1000); - } - }).mouseout(function(){ - my_tooltip.stop().fadeOut(400); - }).css({cursor:'pointer'}).click(function(e){ - my_tooltip.stop().fadeOut(400); - }); - } - - // Check a cell before opening tooltip to make sure empty or invalid cells do not display - function checkCell(kmouse) { - var cell = $(kmouse.target).html(); - if (cell != null && cell !="" && cell !=" " && cell != "-" && cell.charAt(0) != '<' && cell.indexOf('popover')==-1 ) { - var parent = $(kmouse.target).parent().html(); - return ( ! ( parent.indexOf("-1 ) ); - } - return false; - } - - // Shows a tootip and applies the cell value - function showToolTip(my_tooltip, kmouse) { - - var cell = $(kmouse.target).html(); - my_tooltip.html(cell); - my_tooltip.css({ - opacity: 0.75, - display: "none" - }).stop().fadeIn(400); - } - - // Moves the tooltip box so it is not in the way of the mouse - function moveToolTipBox(my_tooltip, kmouse) { - var border_top = $(window).scrollTop(); - var border_right = $(window).width(); - var left_pos; - var top_pos; - var offset = 20; - if (border_right - (offset * 2) >= my_tooltip.width() + kmouse.pageX) - { - left_pos = kmouse.pageX + offset; - } - else - { - left_pos = border_right - my_tooltip.width() - offset; - } - if (border_top + (offset * 2) >= kmouse.pageY - my_tooltip.height()) - { - top_pos = border_top + offset; - } - else - { - top_pos = kmouse.pageY - my_tooltip.height() - offset; - } - my_tooltip.css({ - left: left_pos, - top: top_pos - }); - } - // launches a popup from the page function launchPopup(url,title,width,height) { var wd = null;