Shave some lines.

position: fixed + top: auto = hidden
This commit is contained in:
Nicolas Stepien 2011-07-13 18:02:17 +02:00
parent 3fcf790588
commit 1cc10528c7
2 changed files with 3 additions and 13 deletions

View File

@ -267,8 +267,7 @@
} }
}, },
hoverend: function(e) { hoverend: function(e) {
ui.el.style.top = 'auto'; return ui.el.style.top = 'auto';
return $.hide(ui.el);
} }
}; };
$ = function(selector, root) { $ = function(selector, root) {
@ -2136,7 +2135,6 @@
id: 'qp', id: 'qp',
className: 'replyhl' className: 'replyhl'
}); });
$.hide(preview);
return $.append(d.body, preview); return $.append(d.body, preview);
}, },
node: function(root) { node: function(root) {
@ -2187,8 +2185,7 @@
return quotePreview.parse(this, id, threadID); return quotePreview.parse(this, id, threadID);
})); }));
} }
ui.el = qp; return ui.el = qp;
return $.show(qp);
}, },
parse: function(req, id, threadID) { parse: function(req, id, threadID) {
var body, html, op, qp, reply, _i, _len, _ref; var body, html, op, qp, reply, _i, _len, _ref;
@ -2452,7 +2449,6 @@
img = $.el('img', { img = $.el('img', {
id: 'iHover' id: 'iHover'
}); });
$.hide(img);
$.append(d.body, img); $.append(d.body, img);
return g.callbacks.push(imageHover.node); return g.callbacks.push(imageHover.node);
}, },
@ -2470,8 +2466,7 @@
el = $('#iHover'); el = $('#iHover');
el.src = null; el.src = null;
el.src = this.parentNode.href; el.src = this.parentNode.href;
ui.el = el; return ui.el = el;
return $.show(el);
} }
}; };
imgPreloading = { imgPreloading = {

View File

@ -183,7 +183,6 @@ ui =
hoverend: (e) -> hoverend: (e) ->
ui.el.style.top = 'auto' ui.el.style.top = 'auto'
$.hide ui.el
$ = (selector, root=d.body) -> $ = (selector, root=d.body) ->
root.querySelector selector root.querySelector selector
@ -1664,7 +1663,6 @@ quotePreview =
preview = $.el 'div', preview = $.el 'div',
id: 'qp' id: 'qp'
className: 'replyhl' className: 'replyhl'
$.hide preview
$.append d.body, preview $.append d.body, preview
node: (root) -> node: (root) ->
for quote in $$ 'a.quotelink, a.backlink', root for quote in $$ 'a.quotelink, a.backlink', root
@ -1691,7 +1689,6 @@ quotePreview =
threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]/div', @).id threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]/div', @).id
$.cache @pathname, (-> quotePreview.parse @, id, threadID) $.cache @pathname, (-> quotePreview.parse @, id, threadID)
ui.el = qp ui.el = qp
$.show qp
parse: (req, id, threadID) -> parse: (req, id, threadID) ->
qp = $ '#qp' qp = $ '#qp'
return unless qp.innerHTML is "Loading #{id}..." return unless qp.innerHTML is "Loading #{id}..."
@ -1856,7 +1853,6 @@ nodeInserted = (e) ->
imageHover = imageHover =
init: -> init: ->
img = $.el 'img', id: 'iHover' img = $.el 'img', id: 'iHover'
$.hide img
$.append d.body, img $.append d.body, img
g.callbacks.push imageHover.node g.callbacks.push imageHover.node
node: (root) -> node: (root) ->
@ -1869,7 +1865,6 @@ imageHover =
el.src = null el.src = null
el.src = @parentNode.href el.src = @parentNode.href
ui.el = el ui.el = el
$.show el
imgPreloading = imgPreloading =
init: -> init: ->