limitCategory now works.
authorMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 10:34:58 +0000 (11:34 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 10:34:58 +0000 (11:34 +0100)
src/mkws-team.js

index d99370d..4c59bec 100644 (file)
@@ -185,8 +185,8 @@ function team($, teamName) {
 
     that.limitCategory = function(id) {
        log("limitCategory(id=" + id + ")");
-       // ### Add a filter
-       // ### triggerSearch() if there's a query
+       m_filterSet.add(categoryFilter(id));
+        if (m_query) triggerSearch();
        return false;
     };