From 2f93b391487ac3c089d872a0156cef80293f616d Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 29 Apr 2015 16:37:22 -0400 Subject: [PATCH] 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 --- web/share/elastic-recheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/share/elastic-recheck.js b/web/share/elastic-recheck.js index 38717f62..74224a34 100644 --- a/web/share/elastic-recheck.js +++ b/web/share/elastic-recheck.js @@ -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); } }