]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/sidebar.js
Don't autofocus search, fade out "Where am I?" on focus
[rails.git] / app / assets / javascripts / sidebar.js
index 912197b9f2c380cfcc4732cf7033901d5b8987bf..21a4380dc77aeb1eeef246fd43623a5ae74dcbf3 100644 (file)
@@ -1,16 +1,6 @@
-function openSidebar(options) {
-  options = options || {};
-
-  $("#sidebar").trigger("closed");
-
-  if (options.title) { $("#sidebar_title").html(options.title); }
-
-  $("#sidebar").width(options.width || "30%");
-  $("#sidebar").css("display", "block").trigger("opened");
-}
-
 function closeSidebar() {
-  $("#sidebar").css("display", "none").trigger("closed");
+  $("#sidebar")
+    .trigger("closed");
 }
 
 $(document).ready(function () {