aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-04-30 13:57:18 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-02 14:28:23 +0100
commit16ccaea6fd30c97f179af18f5e393ef88434f6b4 (patch)
tree2568bfa8510089c6d26234b8dfae7aeb5b88285b /web/js
parent4204675024cd7d336280c43e3aa986d70bddd06a (diff)
Fix/tidy front-only hover behaviour.
Diffstat (limited to 'web/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);
+ });
+ }
})();