From: Mike Taylor Date: Tue, 18 Mar 2014 14:26:52 +0000 (+0000) Subject: Rename member variable m_curDetRecId to m_currentRecordId. X-Git-Tag: 1.0.0~1309^2~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7ae91e89f75695cdc3e41a68f56fac454643049a;p=mkws-moved-to-github.git Rename member variable m_curDetRecId to m_currentRecordId. Fixes part of MKWS-123. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index bface84..99ab0ca 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -234,7 +234,7 @@ function team($, teamName) { var m_filters = []; var m_totalRecordCount = 0; var m_currentPage = 1; - var m_curDetRecId = ''; + var m_currentRecordId = ''; var m_curDetRecData = null; var m_debugTime = { // Timestamps for logging @@ -352,7 +352,7 @@ function team($, teamName) { html.push('
', renderSummary(hit), '
'); - if (hit.recid == m_curDetRecId) { + if (hit.recid == m_currentRecordId) { if (m_curDetRecData) html.push(renderDetails(m_curDetRecData)); } @@ -736,8 +736,8 @@ function team($, teamName) { // detailed record drawing that.showDetails = function (prefixRecId) { var recId = prefixRecId.replace('mkwsRec_', ''); - var oldRecordId = m_curDetRecId; - m_curDetRecId = recId; + var oldRecordId = m_currentRecordId; + m_currentRecordId = recId; // remove current detailed view if any var detRecordDiv = document.getElementById('mkwsDet_' + m_teamName + '_' + oldRecordId); @@ -747,7 +747,7 @@ function team($, teamName) { // if the same clicked, just hide if (recId == oldRecordId) { - m_curDetRecId = ''; + m_currentRecordId = ''; m_curDetRecData = null; return; }