1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-16 19:08:38 +01:00

inline-expanding.js: don't expand larger than the window

This commit is contained in:
Michael Save 2012-04-22 16:57:26 +10:00
parent 2448900bfe
commit d8e9f9962f

View File

@ -15,6 +15,8 @@ onready(function(){
for(var i = 0; i < link.length; i++) {
if(typeof link[i] == "object" && link[i].childNodes[0].src && link[i].className != 'file') {
link[i].childNodes[0].style.maxWidth = '95%';
link[i].childNodes[0].style.maxHeight = '95%';
link[i].onclick = function(e) {
if(e.which == 2) {
return true;