Expand, don't go through toggle.
This commit is contained in:
parent
c14bd0a84c
commit
691f8c69d4
@ -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: {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user