var m_filters = [];
var m_totalRecordCount = 0;
var m_currentPage = 1;
- var m_curDetRecId = '';
- var m_curDetRecData = null;
+ var m_currentRecordId = '';
+ var m_currentRecordData = null;
var m_debugTime = {
// Timestamps for logging
"start": $.now(),
html.push('<div class="record" id="mkwsRecdiv_' + teamName + '_' + hit.recid + '" >',
renderSummary(hit),
'</div>');
- if (hit.recid == m_curDetRecId) {
- if (m_curDetRecData)
- html.push(renderDetails(m_curDetRecData));
+ if (hit.recid == m_currentRecordId) {
+ if (m_currentRecordData)
+ html.push(renderDetails(m_currentRecordData));
}
}
results.html(html.join(''));
// in case on_show was faster to redraw element
var detRecordDiv = document.getElementById('mkwsDet_' + teamName + '_' + data.recid);
if (detRecordDiv) return;
- m_curDetRecData = data;
+ m_currentRecordData = 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);
+ var recordDiv = document.getElementById('mkwsRecdiv_' + teamName + '_' + m_currentRecordData.recid);
+ var html = renderDetails(m_currentRecordData);
$(recordDiv).append(html);
}
// 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);
// if the same clicked, just hide
if (recId == oldRecordId) {
- m_curDetRecId = '';
- m_curDetRecData = null;
+ m_currentRecordId = '';
+ m_currentRecordData = null;
return;
}
// request the record