[#263] Remove issue tooltip javascript

This commit is contained in:
Eric Davis 2011-10-28 14:41:20 -07:00
parent aed2b4f661
commit dc682eaddc
1 changed files with 1 additions and 34 deletions

View File

@ -387,6 +387,7 @@ jQuery(document).ready(function($) {
}); });
// show/hide header search box // show/hide header search box
// TODO: switch to live after upgrading jQuery version. "flicker" bug.
$("#account a.search").click(function() { $("#account a.search").click(function() {
var searchWidth = $("#account-nav").width(); var searchWidth = $("#account-nav").width();
@ -398,28 +399,6 @@ jQuery(document).ready(function($) {
return false; return false;
}); });
// issue table info tooltips
$(".js-tooltip").wrapInner("<div class='js-tooltip-inner'></div>").append("<span class='arrow'></span>"); // 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 // file table thumbnails
$("table a.has-thumb").hover(function() { $("table a.has-thumb").hover(function() {
$(this).removeAttr("title").toggleClass("active"); $(this).removeAttr("title").toggleClass("active");
@ -485,15 +464,6 @@ jQuery(document).ready(function($) {
return false; 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 // Connect new issue lightbox to the New Issue link but only when
// on the issues list. // on the issues list.
$('a.issues.selected + ul a.new-issue').click(function() { $('a.issues.selected + ul a.new-issue').click(function() {
@ -622,9 +592,6 @@ jQuery(document).ready(function($) {
$("#top-menu").removeClass("open"); $("#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 // deal with potentially problematic super-long titles
$(".title-bar h2").css({paddingRight: $(".title-bar-actions").outerWidth() + 15 }); $(".title-bar h2").css({paddingRight: $(".title-bar-actions").outerWidth() + 15 });