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:
parent
9d80eef952
commit
2f93b39148
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user