Browse Source

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()
readme-update
Simon Grim 9 years ago
parent
commit
21ee46a466
  1. 2
      js/twister_formatpost.js

2
js/twister_formatpost.js

@ -88,7 +88,7 @@ function postToElem(post, kind, promoted) { @@ -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…
Cancel
Save