mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
add appending of twists' elements to twister.html.detached immediately after creation
to be able to select them via getElem() in situation where they are not selected because not appended yet to body e.g. it fixes case when fetched short URIs can't be applied on twists which are created in newConversationModal()
This commit is contained in:
parent
08856095b0
commit
21ee46a466
@ -88,7 +88,7 @@ function postToElem(post, kind, promoted) {
|
||||
}
|
||||
|
||||
// Now create the html elements
|
||||
var elem = $.MAL.getPostTemplate().clone(true);
|
||||
var elem = $.MAL.getPostTemplate().clone(true).appendTo(twister.html.detached);
|
||||
elem.removeAttr('id')
|
||||
.addClass(kind)
|
||||
.attr('data-time', time)
|
||||
|
Loading…
x
Reference in New Issue
Block a user