2015-08-21 12:52:38 +01:00
|
|
|
function change_comments() {
|
2015-08-28 15:00:39 +01:00
|
|
|
insert_emoticons('.comment-body');
|
2015-08-21 12:52:38 +01:00
|
|
|
}
|
|
|
|
|
2015-08-24 14:57:19 +01:00
|
|
|
function change_readme() {
|
2015-08-28 15:00:39 +01:00
|
|
|
insert_emoticons('#readme');
|
2015-08-24 14:57:19 +01:00
|
|
|
}
|
|
|
|
|
2015-08-28 14:49:03 +01:00
|
|
|
function change_wiki() {
|
2015-08-28 15:00:39 +01:00
|
|
|
insert_emoticons('#wiki-body');
|
2015-08-28 14:49:03 +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-25 14:48:58 +01:00
|
|
|
$('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change input', function() {
|
2015-08-28 15:00:39 +01:00
|
|
|
markdown_decoder('form .timeline-comment textarea[placeholder="Leave a comment"]');
|
2015-08-25 14:27:00 +01:00
|
|
|
});
|
|
|
|
|
2015-08-25 14:48:58 +01:00
|
|
|
$(document).on('ready', function() {
|
2015-08-28 15:00:39 +01:00
|
|
|
change_comments();
|
|
|
|
change_readme();
|
|
|
|
change_wiki();
|
2015-08-25 14:48:58 +01:00
|
|
|
});
|