projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5b0f2c0
)
mkwsDet elements now also move the team to a CSS class.
author
Mike Taylor
<mike@indexdata.com>
Mon, 24 Mar 2014 17:39:12 +0000
(17:39 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 24 Mar 2014 17:39:12 +0000
(17:39 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
02b0b55
..
ed64173
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-538,7
+538,8
@@
function team($, teamName) {
// FIXME: record is async!!
clearTimeout(m_paz.recordTimer);
// in case on_show was faster to redraw element
// FIXME: record is async!!
clearTimeout(m_paz.recordTimer);
// in case on_show was faster to redraw element
- var detRecordDiv = document.getElementById('mkwsDet_' + teamName + '_' + data.recid);
+ // ##### restrict to current team
+ var detRecordDiv = document.getElementById('mkwsDet_' + data.recid);
if (detRecordDiv) return;
m_currentRecordData = data;
var recordDiv = findnode(recordElementId(m_currentRecordData.recid[0]));
if (detRecordDiv) return;
m_currentRecordData = data;
var recordDiv = findnode(recordElementId(m_currentRecordData.recid[0]));
@@
-783,7
+784,8
@@
function team($, teamName) {
m_currentRecordId = recId;
// remove current detailed view if any
m_currentRecordId = recId;
// remove current detailed view if any
- var detRecordDiv = document.getElementById('mkwsDet_' + m_teamName + '_' + oldRecordId);
+ // ##### restrict to current team
+ var detRecordDiv = document.getElementById('mkwsDet_' + oldRecordId);
// lovin DOM!
if (detRecordDiv)
detRecordDiv.parentNode.removeChild(detRecordDiv);
// lovin DOM!
if (detRecordDiv)
detRecordDiv.parentNode.removeChild(detRecordDiv);
@@
-1057,7
+1059,7
@@
function team($, teamName) {
{
var template = loadTemplate("Record");
var details = template(data);
{
var template = loadTemplate("Record");
var details = template(data);
- return '<div class="details" id="mkwsDet_' + m_teamName + '_' + data.recid + '">' + details + '</div>';
+ return '<div class="details mkwsTeam_' + m_teamName + '" id="mkwsDet_' + data.recid + '">' + details + '</div>';
}
that.renderDetails = renderDetails;
}
that.renderDetails = renderDetails;