allow hash urls to work before page loads

Sharing hash urls (pointing to specific graphs) currently doesn't work
as expected because the hash portion is processed before the div
that's being referenced exists. The following forces their
reprocessing after loading the page.

Change-Id: Icaabd48ac12c0349b179d2d67caf83b5ca831048
This commit is contained in:
Sean Dague 2015-04-29 09:56:42 -04:00
parent a4485a992c
commit 90110a0215
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ function update() {
update_graph_for_bug(main, bug);
}, 1);
});
// we have anchor tags, however on first load the relevant
// sections don't exist, so after we load graph points, change
// our anchor as well.
window.location.replace(window.location.href);
});
};