From: Tom Hughes Date: Sat, 19 Apr 2008 13:52:31 +0000 (+0000) Subject: Make openSidebar() work with no argument. X-Git-Tag: live~7846 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/66fcecab91a9625555e1052eb65a266ed318bbf7?ds=sidebyside Make openSidebar() work with no argument. --- 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;