From 217180c507b4bce29d84d9e99e41123e12d5169a Mon Sep 17 00:00:00 2001 From: Bartek Przybylski Date: Fri, 3 Feb 2012 21:37:09 +0100 Subject: [PATCH] removing console error in safari for bookmarks --- js/bookmarks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bookmarks.js b/js/bookmarks.js index b43c3deb..77f767cd 100644 --- a/js/bookmarks.js +++ b/js/bookmarks.js @@ -137,7 +137,7 @@ function showBookmark(event) { $('.bookmarks_add').slideToggle(); } $('html, body').animate({ - scrollTop: $('.bookmarks_menu').offset().top + scrollTop: ($('.bookmarks_menu'))?$('.bookmarks_menu').offset().top:0 }, 500); }