-
Notifications
You must be signed in to change notification settings - Fork 27
Facet position & displayName #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
unbxdSearch.js
Outdated
if(type === "facet_ranges") | ||
return options.fn(this); | ||
else | ||
return options.inverse(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected '{' and instead saw 'return'.
unbxdSearch.js
Outdated
@@ -348,6 +348,13 @@ var unbxdSearchInit = function(jQuery, Handlebars){ | |||
return txt.trim().length > 0 ? txt : " "; | |||
}); | |||
|
|||
Handlebars.registerHelper("isRangeFacet", function(type, options){ | |||
if(type === "facet_ranges") | |||
return options.fn(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected '{' and instead saw 'return'.
bd2ef60
to
b41e621
Compare
test/search/facetPosition.spec.js
Outdated
isSorted = true; | ||
//apply facet | ||
facetElement.click(); | ||
var sortedFacets = this.spyOnFacetTemp.args[0][0].sortedFacets; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'sortedFacets' is already defined.
test/search/facetPosition.spec.js
Outdated
document.body.innerHTML = __html__['index.html']; | ||
|
||
var searchConfig = jQuery.extend({}, window.config); | ||
searchConfig.facetTemp = function(sortedFacets){}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'sortedFacets' is defined but never used.
da95590
to
d5edc06
Compare
d5edc06
to
9bb7b20
Compare
@praveen612 Please review. we can add this express demo if required. /cc @anantheshadiga |
@rahulcs @floydpraveen Please review
/cc @anantheshadiga