From e11a1c35ce01d06727d7ecd6bd5fb5bd5e3364e2 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Tue, 29 Mar 2016 14:24:07 +0500 Subject: [PATCH] add appending of twists' elements to twister.html.detached immediately after creation --- js/twister_formatpost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_formatpost.js b/js/twister_formatpost.js index 7412c8e..86f9e17 100644 --- a/js/twister_formatpost.js +++ b/js/twister_formatpost.js @@ -257,7 +257,7 @@ function setPostInfoSent(n, k, item) { function postToElemDM(dmData, localUser, remoteUser) { var senderAlias = (dmData.from && dmData.from.length && dmData.from.charCodeAt(0)) ? dmData.from : (dmData.fromMe ? localUser : remoteUser); - var elem = $('#dm-chat-template').clone(true) + var elem = $('#dm-chat-template').clone(true).appendTo(twister.html.detached) .removeAttr('id') .addClass(dmData.fromMe ? 'sent' : 'received') ;