From: Mike Taylor Date: Mon, 27 Jan 2014 14:56:12 +0000 (+0000) Subject: Team-name defaults to AUTO. X-Git-Tag: 1.0.0~1585 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=af3cbed1cd4dd7ab0eeacfe72767e083436fa01c;p=mkws-moved-to-github.git Team-name defaults to AUTO. --- 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