X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4cc400de436a5dc33b66bc735b5fb6257e066a5a..a0a6dd36190788b89c5d97f981b4e9b563eb385e:/app/views/site/_sidebar.rhtml?ds=sidebyside 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;