position hovering elements on mouseover

This commit is contained in:
James Campos 2011-05-18 22:19:35 -07:00
parent a74f0a8526
commit 1ab233727e
2 changed files with 10 additions and 6 deletions

View File

@ -1850,9 +1850,10 @@
}));
}
}
$.show(qp);
ui.el = qp;
return ui.winHeight = d.body.clientHeight;
ui.winHeight = d.body.clientHeight;
$.show(qp);
return ui.hover(e);
},
parse: function(req, id, threadID) {
var body, html, op, qp, reply, _i, _len, _ref;
@ -2087,9 +2088,10 @@
el = $('#iHover');
el.src = null;
el.src = this.parentNode.href;
$.show(el);
ui.el = el;
return ui.winHeight = d.body.clientHeight;
ui.winHeight = d.body.clientHeight;
$.show(el);
return ui.hover(e);
}
}
};

View File

@ -1465,9 +1465,10 @@ quotePreview =
quotePreview.parse req, id, threadID
else
g.requests[threadID] = $.get @href, (-> quotePreview.parse this, id, threadID)
$.show qp
ui.el = qp
ui.winHeight = d.body.clientHeight
$.show qp
ui.hover e
parse: (req, id, threadID) ->
qp = $ '#qp'
return unless qp.innerHTML is "Loading #{id}..."
@ -1616,9 +1617,10 @@ imageHover =
el = $ '#iHover'
el.src = null
el.src = @parentNode.href
$.show el
ui.el = el
ui.winHeight = d.body.clientHeight
$.show el
ui.hover e
imgPreloading =
init: ->