handle a link to original image
[booh] / lib / booh / html-merges.rb
index ff3c0cdd30780158f4d31e483c0174f33300f098..5b8a0a48070d2ceefeb2d28ac3b8837e37963de7 100644 (file)
@@ -177,7 +177,11 @@ function show_current_text() {
         document.getElementById('image_counter').firstChild.data = ( current + 1 ) + "/" + images.length;
         document.getElementById('main_text').firstChild.data = captions[current] || images[current];
         for (i = 0; i < other_sizes.length; i++) { 
-            document.getElementById('link' + other_sizes[i]).href = 'image-' + other_sizes[i] + '.html?current=' + eval("images_" + other_sizes[i] + "[current]");
+            if (other_sizes[i] == "original") {
+                document.getElementById('link' + other_sizes[i]).href = eval("images_" + other_sizes[i] + "[current]");
+            } else {
+                document.getElementById('link' + other_sizes[i]).href = 'image-' + other_sizes[i] + '.html?current=' + eval("images_" + other_sizes[i] + "[current]");
+            }
         }
         document.getElementById('thumbnails').href = 'thumbnails-~~current_size~~.html#' + images[current];
         set_cursor("default");