Subscriber for "ready" event now invokes runAutoSearch.
authorMike Taylor <mike@indexdata.com>
Tue, 1 Apr 2014 10:06:41 +0000 (11:06 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 1 Apr 2014 10:06:41 +0000 (11:06 +0100)
src/mkws-team.js

index adf1acf..5b111e5 100644 (file)
@@ -102,6 +102,10 @@ function team($, teamName) {
                      "termlist": m_config.facets.join(',')
                    });
 
+    queue("ready").subscribe(function() {
+       log("in 'ready' consumer");
+       that.runAutoSearch();
+    });
 
     // pz2.js event handlers:
     function onInit() {