From af3cbed1cd4dd7ab0eeacfe72767e083436fa01c Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 27 Jan 2014 14:56:12 +0000 Subject: [PATCH] Team-name defaults to AUTO. --- tools/htdocs/mkws.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 0a62b9b..7b10f2f 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1313,9 +1313,10 @@ function _mkws_jquery_plugin ($) { tname = cname.replace(/^mkwsTeam_/, ''); } } - if (!tname) { - alert("No MKWS team specified for mkwsRecords element with classes '" + classes + "'"); - } else if (mkws.teams[tname]) { + if (!tname) + tname = "AUTO"; + + if (mkws.teams[tname]) { log("MKWS team '" + tname + "' already exists, skipping"); } else if (tname === "AUTO") { // ### For now: later, this will be how the backwards-compatibility is done -- 1.7.10.4