Skip to content

Commit

Permalink
sidebar: scroll to top on new portal
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe committed Jan 2, 2019
1 parent f7be7e0 commit 96d92d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/portal_detail_display.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// methods that highlight the portal in the map view.

window.renderPortalDetails = function(guid) {
if (guid && guid!==selectedPortal) { $("#sidebar").scrollTop(0); }
selectPortal(window.portals[guid] ? guid : null);

if (guid && !portalDetail.isFresh(guid)) {
Expand Down

0 comments on commit 96d92d1

Please sign in to comment.