From f9be8d513ce69935b92cd791c3a62fb365969bce Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 2 Apr 2014 11:48:25 +0100 Subject: [PATCH] Removal of old full-record div now honours teamname. --- src/mkws-team.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 1.7.10.4