diff --git a/addons/website_blog/static/src/js/website_blog.js b/addons/website_blog/static/src/js/website_blog.js index 989f764266f..67f8d1067ef 100644 --- a/addons/website_blog/static/src/js/website_blog.js +++ b/addons/website_blog/static/src/js/website_blog.js @@ -14,14 +14,14 @@ $(document).ready(function() { }); } - function animate() { + function animate(event) { + event.stopImmediatePropagation(); var target = $(this.hash); $('html, body').stop().animate({ 'scrollTop': target.offset().top - 32 }, 500, 'swing', function () { window.location.hash = 'blog_content'; }); - return false; } var content = $(".js_discuss #blog_content p"); @@ -31,7 +31,7 @@ $(document).ready(function() { } $('.js_header').css('min-height', $(window).height()); - $(".js_tweet").find("h1, h2, h3, h4, li, p").share({'author_name':$('#blog_author').text()}); + $(".js_tweet").share({'author_name':$('#blog_author').text()}); $('.cover_footer').on('click',page_transist); $('a[href^="#blog_content"]').on('click', animate); diff --git a/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml b/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml index 5f1600c7b69..cebba5ea477 100644 --- a/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml +++ b/addons/website_blog/static/src/xml/website_blog.inline.discussion.xml @@ -6,8 +6,8 @@
- -
+ +
@@ -16,7 +16,7 @@