VRFS-2823 : Enable proper back button behavior.

This commit is contained in:
Steven Miers 2015-03-16 00:29:57 -05:00
parent 4e99505d2a
commit 07b74cc3e7
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ context.JK.JamTrackScreen=class JamTrackScreen
@instrument.val(parms.instrument)
if(parms.availability?)
@availability.val(parms.availability)
window.history.replaceState({}, "", "/client#/jamtrack")
getParams:() =>
params = {}

View File

@ -47,7 +47,7 @@ context.JK.JamTrackLanding = class JamTrackLanding
that=this
band_list.on "click", "a.artist-link", (event)->
context.location="client#/jamtrack"
window.history.pushState({}, "", this.href)
window.history.replaceState({}, "", this.href)
event.preventDefault()
handleFailure:(error) =>