Revert "block status bar when image hovering"

This reverts commit 268c5f592b8ea63a5fe62407f7ba6e8d97954d4e.
This commit is contained in:
James Campos 2011-05-30 23:01:50 -07:00
parent fd7d020f41
commit 82fbca11e9
2 changed files with 3 additions and 23 deletions

View File

@ -2194,32 +2194,21 @@
}, },
cb: { cb: {
node: function(root) { node: function(root) {
var a, thumb; var thumb;
if (!(thumb = $('img[md5]', root))) { if (!(thumb = $('img[md5]', root))) {
return; return;
} }
a = thumb.parentNode;
a.setAttribute('data-href', a.href);
a.removeAttribute('href');
$.bind(thumb, 'mouseover', imageHover.cb.mouseover); $.bind(thumb, 'mouseover', imageHover.cb.mouseover);
$.bind(thumb, 'mousemove', ui.hover); $.bind(thumb, 'mousemove', ui.hover);
$.bind(thumb, 'mouseout', ui.hoverend); return $.bind(thumb, 'mouseout', ui.hoverend);
return $.bind(thumb, 'mouseout', imageHover.cb.mouseout);
}, },
mouseover: function(e) { mouseover: function(e) {
var a, el; var el;
a = this.parentNode;
a.href = a.dataset.href;
el = $('#iHover'); el = $('#iHover');
el.src = null; el.src = null;
el.src = this.parentNode.href; el.src = this.parentNode.href;
ui.el = el; ui.el = el;
return $.show(el); return $.show(el);
},
mouseout: function(e) {
var a;
a = this.parentNode;
return a.removeAttribute('href');
} }
} }
}; };

View File

@ -1681,24 +1681,15 @@ imageHover =
cb: cb:
node: (root) -> node: (root) ->
return unless thumb = $ 'img[md5]', root return unless thumb = $ 'img[md5]', root
a = thumb.parentNode
a.setAttribute 'data-href', a.href
a.removeAttribute 'href'
$.bind thumb, 'mouseover', imageHover.cb.mouseover $.bind thumb, 'mouseover', imageHover.cb.mouseover
$.bind thumb, 'mousemove', ui.hover $.bind thumb, 'mousemove', ui.hover
$.bind thumb, 'mouseout', ui.hoverend $.bind thumb, 'mouseout', ui.hoverend
$.bind thumb, 'mouseout', imageHover.cb.mouseout
mouseover: (e) -> mouseover: (e) ->
a = @parentNode
a.href = a.dataset.href
el = $ '#iHover' el = $ '#iHover'
el.src = null el.src = null
el.src = @parentNode.href el.src = @parentNode.href
ui.el = el ui.el = el
$.show el $.show el
mouseout: (e) ->
a = @parentNode
a.removeAttribute 'href'
imgPreloading = imgPreloading =
init: -> init: ->