aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/front.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-03 11:08:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-03 11:08:05 +0100
commit1a84ff9e9c0675f9487da08e7f5d11088a5d79f8 (patch)
tree93940979281a13e2e05c41a7a27ae55791bfec49 /web/js/front.js
parent85cdf1d51ad06836f824a1053924185b7bc8f236 (diff)
parent536fdcd39d0d6bd76954d6baa672a3b7f266d155 (diff)
Merge branch 'drop-ie7'
Diffstat (limited to 'web/js/front.js')
-rw-r--r--web/js/front.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/js/front.js b/web/js/front.js
index 8471972d4..67486888b 100644
--- a/web/js/front.js
+++ b/web/js/front.js
@@ -15,4 +15,11 @@ document.getElementById('pc').focus();
var link = around_links[i];
link.href = link.href + (link.href.indexOf('?') > -1 ? '&js=1' : '?js=1');
}
+
+ var lk = document.querySelector('span.report-a-problem-btn');
+ if (lk.addEventListener) {
+ lk.addEventListener('click', function(){
+ scrollTo(0,0);
+ });
+ }
})();