Added support for wikis
This commit is contained in:
parent
00fe5df5b8
commit
2ff415aeab
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,10 @@ function change_readme() {
|
||||||
inject_image('#readme');
|
inject_image('#readme');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function change_wiki() {
|
||||||
|
inject_image('#wiki-body');
|
||||||
|
}
|
||||||
|
|
||||||
$('.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);
|
||||||
|
@ -17,4 +21,5 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i
|
||||||
$(document).on('ready', function() {
|
$(document).on('ready', function() {
|
||||||
change_comments();
|
change_comments();
|
||||||
change_readme();
|
change_readme();
|
||||||
|
change_wiki();
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue