Don't unexpand when inlining.

This commit is contained in:
Nicolas Stepien 2011-06-11 13:25:43 +02:00
parent b5873e778e
commit 0bb8f015d7
2 changed files with 4 additions and 0 deletions

View File

@ -2324,6 +2324,9 @@
}
a = thumb.parentNode;
$.bind(a, 'click', imgExpand.cb.toggle);
if (root.className === 'inline') {
return;
}
if (imgExpand.on) {
return imgExpand.toggle(a);
}

View File

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