X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=7ec9c2f3b700a0fecd77ef91687953d5b1a3789d;hb=9f066ca3996aaaa84fc41d1291edd112be939df5;hp=bbeeb70764ec10c23a27e7898fdde588f1135e77;hpb=99af6dcbe01c16dbcf77609dad7b369343343c58;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index bbeeb70..7ec9c2f 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -191,13 +191,13 @@ mkws.makeTeam = function($, teamName) { // Used by the Records widget and onRecord() function recordElementId(s) { - return 'mkwsRec_' + s.replace(/[^a-z0-9]/ig, '_'); + return 'mkws-rec_' + s.replace(/[^a-z0-9]/ig, '_'); } that.recordElementId = recordElementId; // Used by onRecord(), showDetails() and renderDetails() function recordDetailsId(s) { - return 'mkwsDet_' + s.replace(/[^a-z0-9]/ig, '_'); + return 'mkws-det_' + s.replace(/[^a-z0-9]/ig, '_'); } @@ -390,10 +390,10 @@ mkws.makeTeam = function($, teamName) { teamName = teamName || m_teamName; if (teamName === 'AUTO') { - selector = (selector + '.mkwsTeam_' + teamName + ',' + - selector + ':not([class^="mkwsTeam"],[class*=" mkwsTeam"])'); + selector = (selector + '.mkws-team-' + teamName + ',' + + selector + ':not([class^="mkws-team"],[class*=" mkws-team"])'); } else { - selector = selector + '.mkwsTeam_' + teamName; + selector = selector + '.mkws-team-' + teamName; } var node = $(selector); @@ -408,20 +408,29 @@ mkws.makeTeam = function($, teamName) { } function renderDetails(data, marker) { - var template = loadTemplate("Record"); + var template = loadTemplate("details"); var details = template(data); - return '