Fix wish add modal not disappearing
This commit is contained in:
parent
481cbef81a
commit
71f7d92295
1 changed files with 4 additions and 6 deletions
|
@ -507,13 +507,11 @@ $(function () {
|
||||||
},
|
},
|
||||||
onHide : function() {
|
onHide : function() {
|
||||||
/** Ugly URL */
|
/** Ugly URL */
|
||||||
var paramString = location.search.split('?')[1];
|
if (urlParams.has('wish_add')) {
|
||||||
var queryString = new URLSearchParams(paramString);
|
delete($_GET.wish_add);
|
||||||
|
urlParams.delete('wish_add');
|
||||||
|
|
||||||
if (queryString.has('wish_add')) {
|
window.history.pushState(null, document.title, '?' + urlParams.toString());
|
||||||
queryString.delete('wish_add');
|
|
||||||
|
|
||||||
window.history.pushState(null, document.title, '?' + queryString.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Pretty URL */
|
/** Pretty URL */
|
||||||
|
|
Loading…
Reference in a new issue