projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7944ee8
)
newSearch and triggerSearch accept a perpage argument.
author
Mike Taylor
<mike@indexdata.com>
Tue, 1 Apr 2014 15:12:10 +0000
(16:12 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 1 Apr 2014 15:12:10 +0000
(16:12 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
6b2c081
..
2ae79bd
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-255,7
+255,7
@@
function team($, teamName) {
that.resetPage = resetPage;
that.resetPage = resetPage;
- function newSearch(query, sortOrder, targets)
+ function newSearch(query, sortOrder, perpage, targets)
{
log("newSearch: " + query);
{
log("newSearch: " + query);
@@
-265,14
+265,14
@@
function team($, teamName) {
}
m_filters = []
}
m_filters = []
- triggerSearch(query, sortOrder, targets);
+ triggerSearch(query, sortOrder, perpage, targets);
switchView('records'); // In case it's configured to start off as hidden
m_submitted = true;
}
that.newSearch = newSearch;
switchView('records'); // In case it's configured to start off as hidden
m_submitted = true;
}
that.newSearch = newSearch;
- function triggerSearch(query, sortOrder, targets)
+ function triggerSearch(query, sortOrder, perpage, targets)
{
resetPage();
queue("navi").publish();
{
resetPage();
queue("navi").publish();
@@
-287,6
+287,9
@@
function team($, teamName) {
if (sortOrder) {
m_sortOrder = sortOrder;
}
if (sortOrder) {
m_sortOrder = sortOrder;
}
+ if (perpage) {
+ m_perpage = perpage;
+ }
if (targets) {
m_filters.push({ id: targets, name: targets });
}
if (targets) {
m_filters.push({ id: targets, name: targets });
}