fixed previous commit by writing javascript not in python
This commit is contained in:
@@ -220,9 +220,9 @@ function show_part_info(partID) {
|
|||||||
|
|
||||||
function update_url(partID){
|
function update_url(partID){
|
||||||
params = {}
|
params = {}
|
||||||
var query = $('.search-bar').val();
|
// If there is a seach bar, take its content
|
||||||
if(len(query)>0){
|
if($('.search-bar').length){
|
||||||
params['q'] = query
|
params['q'] = $('.search-bar').val();
|
||||||
}
|
}
|
||||||
if(partID != 0){
|
if(partID != 0){
|
||||||
params['p'] = partID
|
params['p'] = partID
|
||||||
|
|||||||
Reference in New Issue
Block a user