From 649834c64fe224b144a7d4b580aef3a5fccdac4c Mon Sep 17 00:00:00 2001 From: harukin Date: Tue, 22 Jan 2019 16:59:45 +0900 Subject: [PATCH] edit: except link button --- view/theme/plusfuture/js/plusfuture.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/view/theme/plusfuture/js/plusfuture.js b/view/theme/plusfuture/js/plusfuture.js index f640829..c025f39 100644 --- a/view/theme/plusfuture/js/plusfuture.js +++ b/view/theme/plusfuture/js/plusfuture.js @@ -101,15 +101,17 @@ $(document).ready(function() { checkNotify(); }, 10 * 1000); //トップに戻る - $("nav").click(function(e) { - $("body,html").animate( - { - scrollTop: 0 - }, - 150 - ); - return false; - }); + $("nav") + .not("a") + .click(function(e) { + $("body,html").animate( + { + scrollTop: 0 + }, + 150 + ); + return false; + }); }); function makeFullScreen(full) {