From 66fcecab91a9625555e1052eb65a266ed318bbf7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 19 Apr 2008 13:52:31 +0000 Subject: [PATCH] Make openSidebar() work with no argument. --- app/views/site/_sidebar.rhtml | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5