newSearch is now made available a that.newSearch.
authorMike Taylor <mike@indexdata.com>
Tue, 1 Apr 2014 11:24:12 +0000 (12:24 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 1 Apr 2014 11:24:12 +0000 (12:24 +0100)
It's needed by the auto-searching code in individual widgets.

src/mkws-team.js

index b65e0ef..dcd0479 100644 (file)
@@ -269,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)