Expand, don't go through toggle.

This commit is contained in:
Nicolas Stepien 2011-09-23 16:50:11 +02:00
parent c14bd0a84c
commit 691f8c69d4
2 changed files with 2 additions and 2 deletions

View File

@ -2655,7 +2655,7 @@
a = thumb.parentNode;
$.bind(a, 'click', imgExpand.cb.toggle);
if (imgExpand.on && root.className !== 'inline') {
return imgExpand.toggle(a);
return imgExpand.expand(a.firstChild);
}
},
cb: {

View File

@ -1973,7 +1973,7 @@ imgExpand =
return unless thumb = $ 'img[md5]', root
a = thumb.parentNode
$.bind a, 'click', imgExpand.cb.toggle
if imgExpand.on and root.className isnt 'inline' then imgExpand.toggle a
if imgExpand.on and root.className isnt 'inline' then imgExpand.expand a.firstChild
cb:
toggle: (e) ->
return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0