summaryrefslogtreecommitdiff
path: root/js/inline-expanding.js
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-06-12 17:48:31 +0000
committerFredrick Brennan <admin@8chan.co>2014-06-12 17:48:53 +0000
commita9765f6c4a8397dae58b0cda0052be8b7f3d0f24 (patch)
tree30f62e80d4c3d9037cac35daa4163612f5e310b4 /js/inline-expanding.js
parente856917b00b6ede3b5e163b38d4b85780d45664e (diff)
Fix issue #61
Diffstat (limited to 'js/inline-expanding.js')
-rw-r--r--js/inline-expanding.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/inline-expanding.js b/js/inline-expanding.js
index 5bbfa0a0..4cf5a82d 100644
--- a/js/inline-expanding.js
+++ b/js/inline-expanding.js
@@ -48,7 +48,8 @@ onready(function(){
delete this.style.filter;
}
} else {
- this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px';
+ if (~this.parentNode.className.indexOf('multifile'))
+ this.parentNode.style.width = (parseInt(this.dataset.width)+40)+'px';
this.childNodes[0].src = this.dataset.src;
this.childNodes[0].style.width = this.dataset.width;
this.childNodes[0].style.height = this.dataset.height;