newSearch is now made available a that.newSearch.
[mkws-moved-to-github.git] / src / mkws-team.js
index adf1acf..dcd0479 100644 (file)
@@ -102,7 +102,6 @@ function team($, teamName) {
                      "termlist": m_config.facets.join(',')
                    });
 
-
     // pz2.js event handlers:
     function onInit() {
        log("init");
@@ -270,6 +269,7 @@ function team($, teamName) {
        switchView('records'); // In case it's configured to start off as hidden
        m_submitted = true;
     }
+    that.newSearch = newSearch;
 
 
     function triggerSearch(query, sortOrder, targets)