From: Mike Taylor Date: Wed, 5 Mar 2014 09:19:41 +0000 (+0000) Subject: Set full-record HTML using jQuery rather than innerHTML. X-Git-Tag: 1.0.0~1328 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5ef5d20b3d8c331c19adaa6920f0849fb4984dd8;p=mkws-moved-to-github.git Set full-record HTML using jQuery rather than innerHTML. Fixes the last part of MKWS-22. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index ba5ef4a..3a44f46 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -369,9 +369,10 @@ function team($, teamName) { var detRecordDiv = document.getElementById('mkwsDet_' + teamName + '_' + data.recid); if (detRecordDiv) return; m_curDetRecData = data; + // Can't use jQuery's $('#x') syntax to find this ID, because it contains spaces. var recordDiv = document.getElementById('mkwsRecdiv_' + teamName + '_' + m_curDetRecData.recid); var html = renderDetails(m_curDetRecData); - recordDiv.innerHTML += html; + $(recordDiv).append(html); }