foto: keep static images of height 250
[minimedit.git] / foto / album.inc.php
index 42061d7624f805fa0807df62267d6e27dd652b55..7a3f917afbab757e6f3e81a0ea1efb922a69e8eb 100644 (file)
@@ -74,7 +74,6 @@ function imgjustify() {
                targetRowHeight: 200,
        };
        var layout = require('justified-layout')(ratios, config);
-       var thumbreplace = !/[?&]blur\b/.test(window.location.search);
 
        gallery.style.position = 'relative';
        gallery.style.height = layout.containerHeight + 'px';
@@ -86,20 +85,6 @@ function imgjustify() {
                        imgel.style.position = 'absolute';
                        imgel.style.top = layout.boxes[i].top + 'px';
                        imgel.style.left = layout.boxes[i].left + 'px';
-
-                       if (thumbreplace) {
-                               var thumbtarget = imgel.src.replace(/(\/thumb\/)\d+/, '$1'+layout.boxes[i].height)
-                               if (imgel.complete) {
-                                       imgel.src = thumbtarget;
-                               }
-                               else if (thumbtarget != imgel.src) {
-                                       var loadthumb = new Image();
-                                       loadthumb.src = thumbtarget;
-                                       loadthumb.onload = function() {
-                                               imgel.src = this.src;
-                                       };
-                               }
-                       }
                })();
        }
 };