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 (from parent 1:
2827e0f
)
Add team.limitCategory function -- currently does nothing but logging.
author
Mike Taylor
<mike@indexdata.com>
Tue, 22 Apr 2014 13:10:42 +0000
(14:10 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 22 Apr 2014 13:11:09 +0000
(14:11 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
b9d899b
..
74ec42d
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-5,8
+5,8
@@
// Some functions are visible as member-functions to be called from
// outside code -- specifically, from generated HTML. These functions
// are that.switchView(), showDetails(), limitTarget(), limitQuery(),
// Some functions are visible as member-functions to be called from
// outside code -- specifically, from generated HTML. These functions
// are that.switchView(), showDetails(), limitTarget(), limitQuery(),
-// delimitTarget(), delimitQuery(), showPage(), pagerPrev(),
-// pagerNext().
+// limitCategory(), delimitTarget(), delimitQuery(), showPage(),
+// pagerPrev(), pagerNext().
//
function team($, teamName) {
var that = {};
//
function team($, teamName) {
var that = {};
@@
-189,6
+189,14
@@
function team($, teamName) {
};
};
+ that.limitCategory = function(id) {
+ log("limitCategory(id=" + id + ")");
+ m_filters.push({ id: id });
+ //triggerSearch();
+ return false;
+ };
+
+
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
removeMatchingFilters(function(f) { return f.id });
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
removeMatchingFilters(function(f) { return f.id });