Fix clearing current filters when switching laguage
This commit is contained in:
parent
1154b219fe
commit
eb0e5bc589
|
|
@ -185,7 +185,11 @@ function onPageChange(page, type) {
|
|||
function updateUrlQueryString() {
|
||||
let query = $.param($.skinlib);
|
||||
|
||||
window.history.pushState(null, null, url(`skinlib?${query}`));
|
||||
window.history.pushState(null, null, url(`skinlib?${ query }`));
|
||||
|
||||
$('li.locale').each(function () {
|
||||
$(this).find('a').prop('href', `?lang=${ $(this).data('code') }&${ query }`);
|
||||
});
|
||||
}
|
||||
|
||||
function updateBreadCrumb() {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
$link = $_SERVER['REQUEST_URI']."&lang=$code";
|
||||
}
|
||||
?>
|
||||
<li class="locale">
|
||||
<li class="locale" data-code="{{ $code }}">
|
||||
<a href="{{ $link }}">{{ $langInfo['name'] }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user