Commit 4d6581af authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

added update

parent bef29418
...@@ -28,6 +28,13 @@ var STWkit = { ...@@ -28,6 +28,13 @@ var STWkit = {
} }
return -1; return -1;
}, },
updateUrl: function(params) {
var search = STWkit.getSearchUrl(param);
if (history.pushState) {
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + search;
window.history.pushState({ path: newurl }, '', newurl);
}
},
getSearchUrl: function(params) { getSearchUrl: function(params) {
var search = ""; var search = "";
if (params.length > 0) search += "?"; if (params.length > 0) search += "?";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment