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