Thanks! This should now be fully resolved, as well as triggering the same "top"
of null error when clicking a link that doesn't have a valid hashtag, such
as the South & Southeast Asia menu item.

Best,

Matt Thomas
Founder betweenbrain <http://betweenbrain.com/>™
Lead Developer Construct Template Development
Framework<http://construct-framework.com/>
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain


On Wed, Feb 27, 2013 at 1:58 PM, Sean Redmond <notifications@github.com>wrote:

> In js/map-portal.js:
>
> >
> >  (function ($) {
> >  	"use strict";
> > +	// Scroll page, and offset, to fragment identifier on load
> > +	$(window).bind('load', function () {
> > +		var urlHash = window.location.href.split('#'
> )[1]; // Get hash from URL
> > +		if (urlHash) {
> > +			$('html,body').animate({scrollTop: $("[data-scroll='" + urlHash + "']").offset().top - 117}, 0);
>
> Getting there. It still doesn't work if the hashtag doesn't actually
> exist. This needs to check that $("[data-scroll='" + urlHash + "']") is
> not null (typos *will* happen). The side effect can be that it stops the
> header from loading and other JS dependent things from happeneing.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Guggenheim/Joomla-Map-Template/pull/6/files#r3175950>
> .
>