From 23c09a2713cc633acbc86f62eac0afcde5048961 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 22 Sep 2015 15:30:37 +0100 Subject: [PATCH] Added github wiki support --- src/injections/github.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/injections/github.js b/src/injections/github.js index 2bb1ef4..937bd31 100644 --- a/src/injections/github.js +++ b/src/injections/github.js @@ -8,7 +8,7 @@ function change_readme() { function change_wiki() { console.log("Changing wiki"); - insert_emoticons('#wiki-body'); + insert_emoticons('#markdown-body'); } $('.js-comment-container').on('load change', change_comments); @@ -19,11 +19,11 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i markdown_decoder('form .timeline-comment textarea[placeholder="Leave a comment"]'); }); -$('#wiki-body').on('load change', change_wiki); - +$('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki); $(document).on('ready', function() { console.log("Ready"); change_comments(); change_readme(); + change_wiki(); }); -console.log('Github'); \ No newline at end of file +console.log('Github');