X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=9f6c7b2c9dfddf500e1ae691b913f2a02716c512;hb=6e634f407b2e2a04887d34effd0c32cb33e24e6c;hp=40cde79d401aa44c190ff40268e6de5c7a0a44a3;hpb=e2e082f9d4f185a7ac68d37399010e9a82646dc4;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 40cde79..9f6c7b2 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1293,17 +1293,16 @@ function _mkws_jquery_plugin ($) { // For all MKWS-classed nodes that don't have a team // specified, set the team to AUTO. - $('div[class^="mkws"],div[class*=" mkws"]').each(function () { + $('[class^="mkws"],[class*=" mkws"]').each(function () { if (!this.className.match(/mkwsTeam_/)) { log("adding AUTO team to node with class '" + this.className + "'"); $(this).addClass('mkwsTeam_AUTO'); } }); - // Find all nodes with class (NOT id) mkwsRecords, and - // determine their team from the mkwsTeam_* class. So: - //
- $('.mkwsSearch, .mkwsResults, .mkwsRecords, .mkwsTermlists').each(function () { + // Find all nodes with an class, and determine their team from + // the mkwsTeam_* class. Make all team objects. + $('[class^="mkws"],[class*=" mkws"]').each(function () { var node = this; mkws.handle_node_with_team(node, function(tname) { if (mkws.teams[tname]) {