X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cb3992f5a10d821d5015a896771cd34ca068572e..66fcecab91a9625555e1052eb65a266ed318bbf7:/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;