diff --git a/view/theme/plusfuture/js/plusfuture.js b/view/theme/plusfuture/js/plusfuture.js index c025f39..9658edf 100644 --- a/view/theme/plusfuture/js/plusfuture.js +++ b/view/theme/plusfuture/js/plusfuture.js @@ -101,9 +101,12 @@ $(document).ready(function() { checkNotify(); }, 10 * 1000); //トップに戻る - $("nav") - .not("a") - .click(function(e) { + $("nav").click(function(e) { + if ($(e.target).get(0).tagName == "a") { + //spanだけ別の動作 + return false; + } else { + //普通の動作 $("body,html").animate( { scrollTop: 0 @@ -111,7 +114,8 @@ $(document).ready(function() { 150 ); return false; - }); + } + }); }); function makeFullScreen(full) {