Expand, don't go through toggle.
This commit is contained in:
parent
c14bd0a84c
commit
691f8c69d4
@ -2655,7 +2655,7 @@
|
|||||||
a = thumb.parentNode;
|
a = thumb.parentNode;
|
||||||
$.bind(a, 'click', imgExpand.cb.toggle);
|
$.bind(a, 'click', imgExpand.cb.toggle);
|
||||||
if (imgExpand.on && root.className !== 'inline') {
|
if (imgExpand.on && root.className !== 'inline') {
|
||||||
return imgExpand.toggle(a);
|
return imgExpand.expand(a.firstChild);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cb: {
|
cb: {
|
||||||
|
|||||||
@ -1973,7 +1973,7 @@ imgExpand =
|
|||||||
return unless thumb = $ 'img[md5]', root
|
return unless thumb = $ 'img[md5]', root
|
||||||
a = thumb.parentNode
|
a = thumb.parentNode
|
||||||
$.bind a, 'click', imgExpand.cb.toggle
|
$.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:
|
cb:
|
||||||
toggle: (e) ->
|
toggle: (e) ->
|
||||||
return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0
|
return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user