From 5b3cb17bbe57a0caa08f5722de87c5c76ebf964f Mon Sep 17 00:00:00 2001 From: Isaac Hodes Date: Fri, 21 Nov 2014 16:02:13 -0500 Subject: [PATCH] Address CR --- cycledash/static/js/examine/RecordStore.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cycledash/static/js/examine/RecordStore.js b/cycledash/static/js/examine/RecordStore.js index f35e00a..a720523 100644 --- a/cycledash/static/js/examine/RecordStore.js +++ b/cycledash/static/js/examine/RecordStore.js @@ -161,7 +161,7 @@ function createRecordStore(vcfId, dispatcher) { function setSearchStringToQuery(query) { var queryString = encodeURI(JSON.stringify(query)); - window.history.pushState(null, null, '?query=' + queryString); + window.history.replaceState(null, null, '?query=' + queryString); } // Returns the value with the given name in the URL search string. @@ -172,8 +172,7 @@ function createRecordStore(vcfId, dispatcher) { var [key, val] = v.split('='); return decodeURIComponent(key) == name; })); - if (val) - return decodeURIComponent(val.split('=')[1]); + if (val) return decodeURIComponent(val.split('=')[1]); } /**