fetching a file from the Internet must be atomar
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 5e6f090..6f57f6b 100644 (file)
@@ -961,8 +961,7 @@ function team($, teamName) {
 
 
     that.runAutoSearch = function() {
-       // ### should check mkwsTermlist as well, for facet-only teams
-       var node = findnode('.mkwsRecords');
+       var node = findnode('.mkwsRecords,.mkwsTermlists');
        var query = node.attr('autosearch');
        if (!query)
            return;
@@ -1020,7 +1019,7 @@ function team($, teamName) {
     function findnode(selector, teamName) {
        teamName = teamName || m_teamName;
 
-       selector = selector.split(',').map(function(s) {
+       selector = $.map(selector.split(','), function(s, i) {
            return s + '.mkwsTeam_' + teamName;
        }).join(',');