diff options
| author | czaks <marcin@6irc.net> | 2013-07-17 22:15:16 -0400 |
|---|---|---|
| committer | root <root@vichan.6irc.us> | 2013-07-17 22:15:26 -0400 |
| commit | dd4aea54312b288dbfe885be87148f8df116047a (patch) | |
| tree | 8b02a590189a0c87299f5b7d12358339eab25aa6 /js | |
| parent | 95b49f221597a7b45f920f997cddc67be929b47e (diff) | |
inline-expanding.js: internal fix for better stability
Diffstat (limited to 'js')
| -rw-r--r-- | js/inline-expanding.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/inline-expanding.js b/js/inline-expanding.js index ef84e806..7c9923fa 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -16,7 +16,7 @@ onready(function(){ var link = this.getElementsByTagName('a'); for(var i = 0; i < link.length; i++) { - if(typeof link[i] == "object" && link[i].childNodes[0].src && link[i].className != 'file') { + if(typeof link[i] == "object" && typeof link[i].childNodes[0] !== 'undefined' && link[i].childNodes[0].src && link[i].className != 'file') { link[i].childNodes[0].style.maxWidth = '95%'; link[i].onclick = function(e) { if(e.which == 2) { |
