Fix Post.cleanup() breaking EXIF toggling

This commit is contained in:
Matěj Grabovský 2014-04-23 21:43:45 +02:00
parent 47ec271e48
commit 373766e91a

View File

@ -153,7 +153,8 @@ class Post
for node in $$ '.mobile', root
$.rm node
for node in $$ '[id]', post
node.removeAttribute 'id'
if node.className isnt 'exif'
node.removeAttribute 'id'
for node in $$ '.desktop', root
$.rmClass node, 'desktop'
return