diff options
| author | czaks <marcin@6irc.net> | 2014-06-14 18:34:09 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-06-14 18:34:09 +0200 |
| commit | a4dc0d03b75b92155d6c2573278c16d5c781af1c (patch) | |
| tree | 255ed69e4ba16961bfdee15532a8b0d14c186e82 /js/inline-expanding.js | |
| parent | b12612ac576f0bb2c4f82e55d0596d40db77150d (diff) | |
| parent | 91570ef083c20e779596583def6f9a7ce6a751bd (diff) | |
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'js/inline-expanding.js')
| -rw-r--r-- | js/inline-expanding.js | 3 |
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; |
