Browse Source

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

pull/40/head
Michael Save 12 years ago
parent
commit
2f35323de5
  1. 2
      js/inline-expanding.js

2
js/inline-expanding.js

@ -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;

Loading…
Cancel
Save