mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
sort by not working if there is no parameters
This commit is contained in:
parent
69d62725dc
commit
10be99e09b
@ -31,20 +31,20 @@ $('.sort-by-item').on('click', function () {
|
|||||||
} else if (searchParams.has('sort_by')) {
|
} else if (searchParams.has('sort_by')) {
|
||||||
var parameters = "";
|
var parameters = "";
|
||||||
if (value != 'all') {
|
if (value != 'all') {
|
||||||
parameters = "&sort_by=" + value;
|
parameters = "sort_by=" + value;
|
||||||
}
|
}
|
||||||
goURL = location.href.replace("&sort_by=" + sort_by, parameters);
|
goURL = location.href.replace("sort_by=" + sort_by, parameters);
|
||||||
} else {
|
} else {
|
||||||
goURL = url + "&sort_by=" + value;
|
goURL = url + "&sort_by=" + value;
|
||||||
}
|
}
|
||||||
window.location.replace(goURL);
|
window.location.replace(goURL);
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
$('.ad-info-right-bar-video').on('click', function () {
|
$('.ad-info-right-bar-video').on('click', function () {
|
||||||
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].play();
|
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].play();
|
||||||
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].controls = false;
|
$(".video-ad-tooltip-" + $(this).attr('data-id'))[0].controls = false;
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user