]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.html.erb
use i18n kthx
[rails.git] / app / views / site / _sidebar.html.erb
index dd15ef7ba64b2e00ac17de7da3066d3a11c38f0f..2dbcef432c9d11020a3ce390b38264ab6238d8e5 100644 (file)
@@ -21,6 +21,8 @@
        onclose = null;
     }
 
+    if (options.title) { $("sidebar_title").innerHTML = options.title; }
+
     if (options.width) { $("sidebar").style.width = options.width; }
     else { $("sidebar").style.width = "30%"; }
 
     $("sidebar_title").innerHTML = title;
     $("sidebar_content").innerHTML = content;
   }
-
-  function sidebarOpen(title) {
-    return $("sidebar").style.display == "block" &&
-           $("sidebar_title").innerHTML == title;
-  }
 // -->
 </script>