Revert "block status bar when image hovering"
This reverts commit 268c5f592b8ea63a5fe62407f7ba6e8d97954d4e.
This commit is contained in:
parent
fd7d020f41
commit
82fbca11e9
@ -2194,32 +2194,21 @@
|
||||
},
|
||||
cb: {
|
||||
node: function(root) {
|
||||
var a, thumb;
|
||||
var thumb;
|
||||
if (!(thumb = $('img[md5]', root))) {
|
||||
return;
|
||||
}
|
||||
a = thumb.parentNode;
|
||||
a.setAttribute('data-href', a.href);
|
||||
a.removeAttribute('href');
|
||||
$.bind(thumb, 'mouseover', imageHover.cb.mouseover);
|
||||
$.bind(thumb, 'mousemove', ui.hover);
|
||||
$.bind(thumb, 'mouseout', ui.hoverend);
|
||||
return $.bind(thumb, 'mouseout', imageHover.cb.mouseout);
|
||||
return $.bind(thumb, 'mouseout', ui.hoverend);
|
||||
},
|
||||
mouseover: function(e) {
|
||||
var a, el;
|
||||
a = this.parentNode;
|
||||
a.href = a.dataset.href;
|
||||
var el;
|
||||
el = $('#iHover');
|
||||
el.src = null;
|
||||
el.src = this.parentNode.href;
|
||||
ui.el = el;
|
||||
return $.show(el);
|
||||
},
|
||||
mouseout: function(e) {
|
||||
var a;
|
||||
a = this.parentNode;
|
||||
return a.removeAttribute('href');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -1681,24 +1681,15 @@ imageHover =
|
||||
cb:
|
||||
node: (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, 'mousemove', ui.hover
|
||||
$.bind thumb, 'mouseout', ui.hoverend
|
||||
$.bind thumb, 'mouseout', imageHover.cb.mouseout
|
||||
mouseover: (e) ->
|
||||
a = @parentNode
|
||||
a.href = a.dataset.href
|
||||
el = $ '#iHover'
|
||||
el.src = null
|
||||
el.src = @parentNode.href
|
||||
ui.el = el
|
||||
$.show el
|
||||
mouseout: (e) ->
|
||||
a = @parentNode
|
||||
a.removeAttribute 'href'
|
||||
|
||||
imgPreloading =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user