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 14:57:19 +01:00
|
|
|
console.log("comment event");
|
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() {
|
|
|
|
console.log("readme event");
|
2015-08-24 17:54:23 +01:00
|
|
|
inject_image('.comment-body');
|
2015-08-24 14:57:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jq("button.btn[name='comment_and_close']").prev().on('click', function(){ // When the comment button is clicked
|
2015-08-21 12:52:38 +01:00
|
|
|
change_comments();
|
|
|
|
});
|
|
|
|
|
2015-08-24 14:57:19 +01:00
|
|
|
|
|
|
|
jq('.js-comment-container').on('load change', function(){ // when another comment comes in
|
2015-08-21 12:52:38 +01:00
|
|
|
change_comments();
|
|
|
|
});
|
|
|
|
|
2015-08-24 14:57:19 +01:00
|
|
|
|
2015-08-24 17:54:23 +01:00
|
|
|
change_comments();
|
|
|
|
change_readme();
|