X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..92951c6c00be0cb488a97463e25a5ecc8272c49e:/app/views/site/_sidebar.html.erb?ds=inline 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; - } // -->