]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.rhtml
keys change depending on zoom level; force 210px sidebar width for keys
[rails.git] / app / views / site / _sidebar.rhtml
index ae557f90d98bf435ea56ebda3601434d4e000336..8cf1ce62c114f5828101147a3902a78999bcc21b 100644 (file)
@@ -12,6 +12,8 @@
 <script type="text/javascript">
 <!--
   function openSidebar() {
+       if (arguments.length) { $("sidebar").style.width = arguments[0]; }
+                        else { $("sidebar").style.width = "30%"; }
     $("sidebar").style.display = "block";
     <%= onopen %>
   }