[Library|Trunk]
Filters as href: When refine filter changes remove the page parameter, so the refine will run again git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59643 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
8d1d852008
commit
136e79f3bb
|
@ -262,9 +262,7 @@ export class SearchFilterComponent implements OnInit, OnChanges{
|
||||||
//has no filter, no value --> add the value
|
//has no filter, no value --> add the value
|
||||||
params[filter.filterId] = '"' + encodeURIComponent(value.id) + '"' ;
|
params[filter.filterId] = '"' + encodeURIComponent(value.id) + '"' ;
|
||||||
}
|
}
|
||||||
if(params["page"] && params["page"]!="1"){
|
delete params['page'];
|
||||||
params["page"]=1;
|
|
||||||
}
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,9 +76,8 @@ export class RangeFilterComponent {
|
||||||
}else{
|
}else{
|
||||||
delete params['year'];
|
delete params['year'];
|
||||||
}
|
}
|
||||||
if(params["page"] && params["page"]!="1"){
|
|
||||||
params["page"]=1;
|
delete params['page'];
|
||||||
}
|
|
||||||
return params;
|
return params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue