1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

inline-expanding.js: Or is it not after all?

This commit is contained in:
Jano Slota 2014-07-29 16:18:21 +02:00 committed by czaks
parent d81a6c49e2
commit f14922ca8b

View File

@ -18,6 +18,7 @@ onready(function(){
for (var i = 0; i < link.length; i++) {
if (typeof link[i] == "object" && link[i].childNodes && typeof link[i].childNodes[0] !== 'undefined' && link[i].childNodes[0].src && link[i].childNodes[0].className.match(/post-image/) && !link[i].className.match(/file/)) {
link[i].childNodes[0].style.maxWidth = '96%';
link[i].onclick = function(e) {
if (this.childNodes[0].className == 'hidden')
return false;