From: Mike Taylor Date: Wed, 2 Apr 2014 10:48:25 +0000 (+0100) Subject: Removal of old full-record div now honours teamname. X-Git-Tag: 1.0.0~1100 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f9be8d513ce69935b92cd791c3a62fb365969bce;p=mkws-moved-to-github.git Removal of old full-record div now honours teamname. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 2ae79bd..8a78520 100644 --- 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) {