From 3ded1a85d7527cf1ee3991067b5774ca3e05d35a Mon Sep 17 00:00:00 2001 From: Boris Staal Date: Sat, 9 Nov 2013 18:35:13 +0700 Subject: [PATCH] Sidebar navigation bug fixed --- package.json | 2 +- themes/default/assets/javascript/sidebar.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 42a7db9..fa5ff7b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "name": "Boris Staal" } ], - "version": "2.0.0-rc.2", + "version": "2.0.0-rc.3", "licenses": [ { "type": "MIT", diff --git a/themes/default/assets/javascript/sidebar.coffee b/themes/default/assets/javascript/sidebar.coffee index 4553614..e0cdaad 100644 --- a/themes/default/assets/javascript/sidebar.coffee +++ b/themes/default/assets/javascript/sidebar.coffee @@ -49,7 +49,7 @@ $ -> # $('body #content.list ul').on 'click', 'li', (event) -> link = $(@).find('a:not(.toggle)').attr('href') - top.frames['main'].location.href = link unless link is '#' if link + top.frames['main'].location.href = link if link && link != '#' event.preventDefault() #