From 2fec6a18e471d9dcefbe49b9f0f00a00dabe38a5 Mon Sep 17 00:00:00 2001 From: harukin Date: Tue, 22 Jan 2019 17:07:24 +0900 Subject: [PATCH] test: same --- view/theme/plusfuture/js/plusfuture.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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) {