]> git.openstreetmap.org Git - rails.git/commitdiff
Make openSidebar() work with no argument.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:52:31 +0000 (13:52 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 13:52:31 +0000 (13:52 +0000)
app/views/site/_sidebar.rhtml

index d813635905971a9c86a69b8c2b69aed017bca886..ad2845ff47ed8a637f6079e9fbf3ff31017a2124 100644 (file)
@@ -14,6 +14,8 @@
   var onclose;
 
   function openSidebar(options) {
+    options = options || {};
+
     if (onclose) {
        onclose();
        onclose = null;