X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..ed0375ec89862574e642070b01fe16e90f058538:/app/views/site/_sidebar.html.erb?ds=sidebyside diff --git a/app/views/site/_sidebar.html.erb b/app/views/site/_sidebar.html.erb index dd15ef7ba..2dbcef432 100644 --- a/app/views/site/_sidebar.html.erb +++ b/app/views/site/_sidebar.html.erb @@ -21,6 +21,8 @@ onclose = null; } + if (options.title) { $("sidebar_title").innerHTML = options.title; } + if (options.width) { $("sidebar").style.width = options.width; } else { $("sidebar").style.width = "30%"; } @@ -46,10 +48,5 @@ $("sidebar_title").innerHTML = title; $("sidebar_content").innerHTML = content; } - - function sidebarOpen(title) { - return $("sidebar").style.display == "block" && - $("sidebar_title").innerHTML == title; - } // -->