Fix dtext preview button to use event delegation.

Fixes the dtext preview button and dtext expandable to work with
dynamically loaded dtext forms.
This commit is contained in:
evazion
2018-09-26 19:49:56 -05:00
parent 6aecbf4a7e
commit a5438aaf37
3 changed files with 5 additions and 10 deletions

View File

@@ -11,7 +11,6 @@ Comment.initialize_all = function() {
$(window).on("danbooru:index_for_post", (_event, post_id, current_comment_section) => {
$("#threshold-comments-notice-for-" + post_id).hide();
Dtext.initialize_expandables(current_comment_section);
});
}