This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
2015-08-21 12:52:38 +01:00
|
|
|
function change_comments() {
|
2015-08-24 17:54:23 +01:00
|
|
|
inject_image('.comment-body');
|
2015-08-21 12:52:38 +01:00
|
|
|
}
|
|
|
|
|
2015-08-24 14:57:19 +01:00
|
|
|
function change_readme() {
|
2015-08-24 22:15:12 +01:00
|
|
|
inject_image('#readme');
|
2015-08-24 14:57:19 +01:00
|
|
|
}
|
|
|
|
|
2015-08-24 22:15:12 +01:00
|
|
|
$("button.btn[name='comment_and_close']").prev().on('click', change_comments);
|
2015-08-24 14:57:19 +01:00
|
|
|
|
2015-08-24 22:15:12 +01:00
|
|
|
$('.js-comment-container').on('load change', change_comments);
|
2015-08-21 12:52:38 +01:00
|
|
|
|
2015-08-24 22:15:12 +01:00
|
|
|
$('#readme').on('load change', change_readme);
|
2015-08-21 12:52:38 +01:00
|
|
|
|
2015-08-24 14:57:19 +01:00
|
|
|
|
2015-08-24 17:54:23 +01:00
|
|
|
change_comments();
|
|
|
|
change_readme();
|