fixed previous commit by writing javascript not in python

This commit is contained in:
2022-11-30 13:01:47 +01:00
parent 51022e79bd
commit 807c136143
+3 -3
View File
@@ -220,9 +220,9 @@ function show_part_info(partID) {
function update_url(partID){
params = {}
var query = $('.search-bar').val();
if(len(query)>0){
params['q'] = query
// If there is a seach bar, take its content
if($('.search-bar').length){
params['q'] = $('.search-bar').val();
}
if(partID != 0){
params['p'] = partID