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:
5f24393
)
Removal of old full-record div now honours teamname.
author
Mike Taylor
<mike@indexdata.com>
Wed, 2 Apr 2014 10:48:25 +0000
(11:48 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 2 Apr 2014 10:48:25 +0000
(11:48 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
2ae79bd
..
8a78520
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-366,11
+366,7
@@
function team($, teamName) {
m_currentRecordId = recId;
// remove current detailed view if any
- // ##### restrict to current team
- var detRecordDiv = document.getElementById(recordDetailsId(oldRecordId));
- // lovin DOM!
- if (detRecordDiv)
- detRecordDiv.parentNode.removeChild(detRecordDiv);
+ findnode('#' + recordDetailsId(oldRecordId)).remove();
// if the same clicked, just hide
if (recId == oldRecordId) {