]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.html.erb
Fix interpolation issues in attribution text
[rails.git] / app / views / site / _sidebar.html.erb
index 3b1b547b62f1d97d6bd27b96fbfaaae4a3b38b66..bea37d0d99bf4992253f4c1d0467cc4bff07d5c7 100644 (file)
@@ -2,51 +2,9 @@
   <table class="sidebar_title" width="100%">
     <tr>
       <td id="sidebar_title"><% t 'site.sidebar.search_results' %></td>
-      <td id="sidebar_close"><a href="javascript:closeSidebar()"><%= t 'site.sidebar.close' %></a></td>
+      <td id="sidebar_close"><a class="sidebar_close" href="#"><%= t 'site.sidebar.close' %></a></td>
     </tr>
   </table>
   <div id="sidebar_content">
   </div>
 </div>
-
-<script type="text/javascript">
-<!--
-  var onclose;
-
-  function openSidebar(options) {
-    options = options || {};
-
-    if (onclose) {
-       onclose();
-       onclose = null;
-    }
-
-    if (options.title) { $("#sidebar_title").html(options.title); }
-
-    if (options.width) { $("#sidebar").width(options.width); }
-    else { $("#sidebar").width("30%"); }
-
-    $("#sidebar").css("display", "block");
-
-    <%= onopen %>
-
-    onclose = options.onclose;
-  }
-
-  function closeSidebar() {
-    $("#sidebar").css("display", "none");
-
-    <%= onclose %>
-
-    if (onclose) {
-       onclose();
-       onclose = null;
-    }
-  }
-
-  function updateSidebar(title, content) {
-    $("#sidebar_title").html(title);
-    $("#sidebar_content").html(content);
-  }
-// -->
-</script>