]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_sidebar.html.erb
Display CT status on the user page
[rails.git] / app / views / site / _sidebar.html.erb
index f7e7229c89432bcb9b0835965534b5c090b58e98..3b1b547b62f1d97d6bd27b96fbfaaae4a3b38b66 100644 (file)
        onclose = null;
     }
 
-    if (options.title) { $("sidebar_title").innerHTML = options.title; }
+    if (options.title) { $("#sidebar_title").html(options.title); }
 
-    if (options.width) { $("sidebar").style.width = options.width; }
-    else { $("sidebar").style.width = "30%"; }
+    if (options.width) { $("#sidebar").width(options.width); }
+    else { $("#sidebar").width("30%"); }
 
-    $("sidebar").style.display = "block";
+    $("#sidebar").css("display", "block");
 
     <%= onopen %>
 
@@ -34,7 +34,7 @@
   }
 
   function closeSidebar() {
-    $("sidebar").style.display = "none";
+    $("#sidebar").css("display", "none");
 
     <%= onclose %>
 
@@ -45,8 +45,8 @@
   }
 
   function updateSidebar(title, content) {
-    $("sidebar_title").innerHTML = title;
-    $("sidebar_content").innerHTML = content;
+    $("#sidebar_title").html(title);
+    $("#sidebar_content").html(content);
   }
 // -->
 </script>