From c454f806a085728d1474ce77bb73285a177f04f4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 23 Sep 2015 13:44:25 +0100 Subject: [PATCH] Fixed support for repo page commit messages --- src/injections/github.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/injections/github.js b/src/injections/github.js index 73aed85..2f6de8d 100644 --- a/src/injections/github.js +++ b/src/injections/github.js @@ -12,7 +12,7 @@ function change_wiki() { } function change_commits() { - insert_emoticons('table.files a .message'); + insert_emoticons('table.files a.message'); insert_emoticons('table.timeline-commits commit-message a.message'); } @@ -27,8 +27,7 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i $('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki); -$('table.files').on('DOMNodeInserted DOMNodeRemoved change load', change_commits); -$('table.timeline-commits').on('DOMNodeInserted DOMNodeRemoved change load', change_commits); +$('table.timeline-commits').on('change load', change_commits); $(document).on('ready', function() { console.log("Ready");