Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
solr-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
40618ea5
authored
2016-06-22 16:49:09 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix option passing, so that skipSearch can be honored.
1 parent
aaeb532d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/scripts/solr/model/Facet.js
src/scripts/solr/model/Solr.js
src/scripts/solr/model/Facet.js
View file @
40618ea
...
...
@@ -178,8 +178,8 @@ define(function(require) {
this
.
set
(
'items'
,
new
ItemCollection
([]));
this
.
set
(
'comparator'
,
options
.
comparator
,
{
silent
:
true
});
this
.
trigger
(
'change:comparator'
);
this
.
get
(
'items'
).
on
(
'item-change'
,
function
()
{
this
.
trigger
(
'item-change'
);
this
.
get
(
'items'
).
on
(
'item-change'
,
function
(
model
,
value
,
options
)
{
this
.
trigger
(
'item-change'
,
null
,
null
,
options
);
},
this
);
this
.
facetType
=
options
.
facetType
;
this
.
facetStats
=
options
.
facetStats
;
...
...
@@ -308,7 +308,7 @@ define(function(require) {
});
break
;
}
items
.
set
(
newItems
,
{
remove
:
false
}
);
items
.
set
(
newItems
,
_
.
extend
(
options
,
{
remove
:
false
})
);
if
(
this
.
facetStats
)
{
var
thisFacetStats
=
statsFields
[
facetName
];
this
.
set
({
minValue
:
thisFacetStats
.
min
,
maxValue
:
thisFacetStats
.
max
});
...
...
src/scripts/solr/model/Solr.js
View file @
40618ea
...
...
@@ -166,7 +166,7 @@ define(function(require) {
}
var
facets
=
this
.
get
(
'facets'
);
if
(
this
.
get
(
'options'
).
get
(
'faceting'
))
{
facets
.
applyFacetResults
(
data
);
facets
.
applyFacetResults
(
data
,
skipOptions
);
}
else
{
facets
.
resetSearch
(
options
);
}
...
...
Please
register
or
sign in
to post a comment