From a2342170e07e8e5c46af357d0c941918cacfda67 Mon Sep 17 00:00:00 2001 From: harukin Date: Tue, 22 Jan 2019 17:10:54 +0900 Subject: [PATCH] test: again --- view/theme/plusfuture/js/plusfuture.js | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) 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; }); });