Don't decorate teamless widget nodes with mkwsTeam_AUTO.
authorMike Taylor <mike@indexdata.com>
Fri, 11 Apr 2014 10:57:47 +0000 (11:57 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 11 Apr 2014 10:57:47 +0000 (11:57 +0100)
src/mkws-core.js

index a030d5b..fd0c0de 100644 (file)
@@ -371,15 +371,6 @@ mkws.pagerNext = function(tname) {
            }
        }
 
-       // For all MKWS-classed nodes that don't have a team
-       // specified, set the team to AUTO.
-       $('[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 an MKWS class, and determine their team from
        // the mkwsTeam_* class. Make all team objects.
        var then = $.now();