fix a small bug
authorgc <gc>
Mon, 25 Apr 2005 21:20:16 +0000 (21:20 +0000)
committergc <gc>
Mon, 25 Apr 2005 21:20:16 +0000 (21:20 +0000)
lib/booh/html-merges.rb

index 6ab890240f3379d848e40ace9fca25211b4657a1..ff3c0cdd30780158f4d31e483c0174f33300f098 100644 (file)
@@ -177,8 +177,7 @@ 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++) { 
-            linkelems = document.getElementById('link' + other_sizes[i]).href.split('?');
-            document.getElementById('link' + other_sizes[i]).href = linkelems[0] + '?current=' + eval("images_" + other_sizes[i] + "[current]");
+            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");