projects
/
mkdru-moved-to-drupal.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8fb3fc
)
Fix limit query
author
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 3 Mar 2011 10:09:49 +0000
(11:09 +0100)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 3 Mar 2011 10:09:49 +0000
(11:09 +0100)
Seems like this was broken recently
mkdru.client.js
patch
|
blob
|
history
diff --git
a/mkdru.client.js
b/mkdru.client.js
index
47e5da9
..
e985d42
100644
(file)
--- a/
mkdru.client.js
+++ b/
mkdru.client.js
@@
-327,11
+327,11
@@
mkdru.search = function () {
filter = 'pz:id=' + mkdru.state.limit_source;
}
else {
- var limits = mkdru.state['limit_' + facet].split(';');
+ var limits = mkdru.state['limit_' + facet].split(/;+/);
for (var i = 0; i < limits.length; i++) {
// ex. query + and au="{limit_author}"
query += ' and ' + mkdru.facets[facet]['limiter'] + '="'
- + mkdru.state['limit_' + facet] + '"';
+ + limits[i] + '"';
}
}
}