diff options
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index 8619ba9..bae3896 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -141,5 +141,13 @@ Ext.define('Traccar.Application', { } else { Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection); } - } + }, + + removeUrlParameter: function (param) { + var params = Ext.Object.fromQueryString(window.location.search); + delete params[param]; + window.history.pushState(null, null, window.location.pathname + '?' + Ext.Object.toQueryString(params)); + }, + + hasEventId: false }); |