]> git.openstreetmap.org Git - rails.git/blob - app/views/site/_sidebar.rhtml
Split out sidebar code from the search code so it can be reused for the
[rails.git] / app / views / site / _sidebar.rhtml
1 <div id="sidebar">
2   <table class="sidebar_title" width="100%">
3     <tr>
4       <td align="left" id="sidebar_title">Search Results</td>
5       <td align="right"><a href="javascript:closeSidebar()">Close</a></td>
6     </tr>
7   </table>
8   <div id="sidebar_content">
9   </div>
10 </div>
11
12 <script type="text/javascript">
13 <!--
14   function openSidebar() {
15     $("sidebar").style.display = "block";
16     <%= onopen %>
17   }
18
19   function closeSidebar() {
20     $("sidebar").style.display = "none";
21     <%= onclose %>
22   }
23
24   function updateSidebar(title, content) {
25     $("sidebar_title").innerHTML = title;
26     $("sidebar_content").innerHTML = content;
27   }
28 // -->
29 </script>