multi languages, in backend only for the moment
[booh] / data / booh / themes / simple / root / booh.js
index 3268972ed29a196cea251684229e42fed78ae004..c9fdef692a658b18c6beb827b6723943b307b02d 100644 (file)
@@ -223,10 +223,10 @@ function show_current_text() {
             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('link' + other_sizes[i]).href = 'image-' + other_sizes[i] + dbltilda_htmlsuffix + '#current=' + eval("images_" + other_sizes[i] + "[current]");
             }
         }
-        document.getElementById('thumbnails').href = 'thumbnails-' + dbltilda_current_size + '-' + thumbnailspages[current] + '.html#' + images[current];
+        document.getElementById('thumbnails').href = 'thumbnails-' + dbltilda_current_size + '-' + thumbnailspages[current] + dbltilda_htmlsuffix + '#' + images[current];
         set_cursor("default");
     } else {
         setTimeout("show_current_text()", 50);
@@ -237,7 +237,7 @@ function show_current_text() {
 function display_current() {
     document.main_img.src = images[current];
     oldhref = browser_href();
-    newhref = 'image-' + dbltilda_current_size + '.html#current=' + images[current];
+    newhref = 'image-' + dbltilda_current_size + dbltilda_htmlsuffix + '#current=' + images[current];
     if (oldhref != newhref) {
         currentURL = 'ignore1';
         location.href = newhref;