Skip to content

Commit 95d679a

Browse files
committed
read categoryid after finalparams is set
1 parent ffb49ec commit 95d679a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unbxdSearch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ var unbxdSearchInit = function(jQuery, Handlebars){
529529

530530
this.reset();
531531

532-
this.params.categoryId = this.options.type == "browse" && typeof this.options.getCategoryId == "function" ? this.options.getCategoryId() : "";
533532
var cur_url = this.getUrlSubstring()
534533
,urlqueryparams = this.getQueryParams(cur_url)
535534
// add test to check if the url is encoded,
@@ -554,6 +553,8 @@ var unbxdSearchInit = function(jQuery, Handlebars){
554553

555554
this.params = finalParams;
556555

556+
this.params.categoryId = this.options.type == "browse" && typeof this.options.getCategoryId == "function" ? this.options.getCategoryId() : "";
557+
557558
this.setPage("page" in finalParams.extra ? finalParams.extra.page : 1)
558559
.setPageSize("rows" in finalParams.extra ? finalParams.extra.rows : this.options.pageSize);
559560

0 commit comments

Comments
 (0)