X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6255c961304aa70edf892005825e7dd9d916e3cc..d3bf4149e09053436d8d266952c49bb8f7ef6946:/app/assets/javascripts/sidebar.js?ds=sidebyside diff --git a/app/assets/javascripts/sidebar.js b/app/assets/javascripts/sidebar.js index 912197b9f..21a4380dc 100644 --- a/app/assets/javascripts/sidebar.js +++ b/app/assets/javascripts/sidebar.js @@ -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 () {