Last active
May 21, 2016 20:26
-
-
Save svendahlstrand/0791bcbfd97b174e6191ae512c3c3432 to your computer and use it in GitHub Desktop.
Ett JavaScript som rullar besökaren längst upp när hon går till en annan sida bland sökresultaten i SiteVisions facetterade sök-modul.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$('body').on('mouseup', '.sv-facetedsearch-portlet .pagination a', function () { | |
window.scrollTo(0, 0); | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lägg filen
sv-facetedsearch-scroll-fix.js
som ett lokalt JavaScript-tillägg i <body> på den sida där du vill ha funktionen.