1
Fork 0

Added support for commits

This commit is contained in:
Jake Howard 2015-09-22 15:59:12 +01:00
parent 871a302f43
commit 8284f8dd63

View file

@ -11,6 +11,10 @@ function change_wiki() {
insert_emoticons('#markdown-body'); insert_emoticons('#markdown-body');
} }
function change_commits() {
insert_emoticons('table.files a .message')
}
$('.js-comment-container').on('load change', change_comments); $('.js-comment-container').on('load change', change_comments);
$('#readme').on('load change', change_readme); $('#readme').on('load change', change_readme);
@ -20,10 +24,15 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i
}); });
$('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki); $('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki);
$('table.files').on('DOMNodeInserted DOMNodeRemoved change load', change_commits);
$(document).on('ready', function() { $(document).on('ready', function() {
console.log("Ready"); console.log("Ready");
change_comments(); change_comments();
change_commits();
change_readme(); change_readme();
change_wiki(); change_wiki();
}); });
console.log('Github'); console.log('Github');