X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/599c48227a94339f7e58bddc3fb0d0215baa58c4..88105d9c643519e02082ba9cc5044bb0dfdcb7b9:/app/views/site/_sidebar.rhtml diff --git a/app/views/site/_sidebar.rhtml b/app/views/site/_sidebar.rhtml index d81363590..ad2845ff4 100644 --- a/app/views/site/_sidebar.rhtml +++ b/app/views/site/_sidebar.rhtml @@ -14,6 +14,8 @@ var onclose; function openSidebar(options) { + options = options || {}; + if (onclose) { onclose(); onclose = null;