actually actually make window location work

The last change failed to account for the fact that bug is a hash, and
hence was not building the correct anchors ever. This fixes that.

This was also actually actually tested using the new test_server.py,
which makes live testing these changes much much better.

Change-Id: Id340bdc3e2046dde7273bccc7fe97f42e1db07b9
This commit is contained in:
Sean Dague 2015-04-29 16:37:22 -04:00
parent 9d80eef952
commit 2f93b39148
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ function update_graph_for_bug(main, bug) {
// if we've updated the bug number in question, and our requested
// location is this bug, reset the window location to visually
// scroll us to this point.
if ( ("#" + bug) == window.location.hash ) {
if ( ("#" + bug['number']) == window.location.hash ) {
window.location.replace(window.location.href);
}
}