[#263] Remove issue tooltip javascript
This commit is contained in:
parent
aed2b4f661
commit
dc682eaddc
|
@ -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("<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
|
||||
$("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 });
|
||||
|
||||
|
|
Loading…
Reference in New Issue