don't push history on initial reset()
This commit is contained in:
parent
315012cfb7
commit
2c57cff27f
@ -111,7 +111,7 @@ require(["map", "infobox/main"], function (Map, Infobox) {
|
|||||||
historyDict.links[linkId(d)] = d
|
historyDict.links[linkId(d)] = d
|
||||||
})
|
})
|
||||||
|
|
||||||
gotoAnything.reset()
|
gotoAnything.reset(false)
|
||||||
|
|
||||||
gotoHistory(gotoAnything, historyDict, window.location.hash)
|
gotoHistory(gotoAnything, historyDict, window.location.hash)
|
||||||
|
|
||||||
@ -326,11 +326,14 @@ require(["map", "infobox/main"], function (Map, Infobox) {
|
|||||||
|
|
||||||
var infobox
|
var infobox
|
||||||
|
|
||||||
function resetView() {
|
function resetView(push) {
|
||||||
|
push = trueDefault(push)
|
||||||
|
|
||||||
targets.forEach( function (t) {
|
targets.forEach( function (t) {
|
||||||
t.resetView()
|
t.resetView()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (push)
|
||||||
pushHistory()
|
pushHistory()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user