From dc682eaddc53e5acb3db5638837ba7c984ada89e Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 28 Oct 2011 14:41:20 -0700 Subject: [PATCH] [#263] Remove issue tooltip javascript --- public/javascripts/application.js | 35 +------------------------------ 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index dfd76479..4b427d0c 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -387,6 +387,7 @@ jQuery(document).ready(function($) { }); // show/hide header search box + // TODO: switch to live after upgrading jQuery version. "flicker" bug. $("#account a.search").click(function() { var searchWidth = $("#account-nav").width(); @@ -398,28 +399,6 @@ jQuery(document).ready(function($) { return false; }); - // issue table info tooltips - $(".js-tooltip").wrapInner("
").append(""); // give an extra div for styling - - $("table.issues td.issue").hover(function(event) { - var $thisTR = $(event.target).parents("tr"); - var trPos = $thisTR.position(); - var tTarget = $thisTR.attr("id"); - - $("form#issue-list").toggleClass("tooltip-active"); - $("div[rel="+tTarget+"]").css('top', trPos.top).fadeIn(animRate*2, function(){ - //ie cleartype uglies - if ($.browser.msie) {this.style.removeAttribute('filter'); }; - }); - - }, function(event) { - var $thisTR = $(event.target).parents("tr"); - var tTarget = $thisTR.attr("id"); - - $("form#issue-list").toggleClass("tooltip-active"); - $("div[rel="+tTarget+"]").hide(); - }); - // file table thumbnails $("table a.has-thumb").hover(function() { $(this).removeAttr("title").toggleClass("active"); @@ -485,15 +464,6 @@ jQuery(document).ready(function($) { return false; }); - // suckerfish-esque on those issue dropdown menus for IE6 - if (parseInt($.browser.version, 10) < 7 && $.browser.msie) { - $(".issue-dropdown li").hover(function() { - $(this).toggleClass("hover"); - }, function() { - $(this).toggleClass("hover"); - }); - } - // Connect new issue lightbox to the New Issue link but only when // on the issues list. $('a.issues.selected + ul a.new-issue').click(function() { @@ -622,9 +592,6 @@ jQuery(document).ready(function($) { $("#top-menu").removeClass("open"); }); - // first remove current event handlers for tooltips - overrides original common.js functionality. Remove this once common.js is merged with this. - $("table.issues td.issue").unbind('mouseenter').unbind("mouseleave"); - // deal with potentially problematic super-long titles $(".title-bar h2").css({paddingRight: $(".title-bar-actions").outerWidth() + 15 });