Don't unexpand when inlining.
This commit is contained in:
parent
b5873e778e
commit
0bb8f015d7
@ -2324,6 +2324,9 @@
|
|||||||
}
|
}
|
||||||
a = thumb.parentNode;
|
a = thumb.parentNode;
|
||||||
$.bind(a, 'click', imgExpand.cb.toggle);
|
$.bind(a, 'click', imgExpand.cb.toggle);
|
||||||
|
if (root.className === 'inline') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (imgExpand.on) {
|
if (imgExpand.on) {
|
||||||
return imgExpand.toggle(a);
|
return imgExpand.toggle(a);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1742,6 +1742,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
|
||||||
|
return if root.className is 'inline'
|
||||||
if imgExpand.on then imgExpand.toggle a
|
if imgExpand.on then imgExpand.toggle a
|
||||||
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