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:52:12 +01:00
|
|
|
console.log("Changing wiki");
|
2015-09-25 11:04:36 +01:00
|
|
|
insert_emoticons('#wiki-body');
|
2015-08-28 14:49:03 +01:00
|
|
|
}
|
|
|
|
|
2015-09-22 15:59:12 +01:00
|
|
|
function change_commits() {
|
2015-09-23 13:44:25 +01:00
|
|
|
insert_emoticons('table.files a.message');
|
2015-09-22 16:09:24 +01:00
|
|
|
insert_emoticons('table.timeline-commits commit-message a.message');
|
|
|
|
|
2015-09-22 15:59:12 +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-09-25 11:04:36 +01:00
|
|
|
$('#wiki-body').on('load change', change_wiki);
|
2015-09-22 15:59:12 +01:00
|
|
|
|
2015-09-25 11:04:36 +01:00
|
|
|
$('table.timeline-commits').on('load chang', change_commits);
|
|
|
|
|
|
|
|
$('a.wiki-page-link').on('click', function() {
|
|
|
|
change_comments();
|
|
|
|
change_commits();
|
|
|
|
change_readme();
|
|
|
|
change_wiki();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('a.sunken-menu-item').on('click', function() {
|
|
|
|
change_comments();
|
|
|
|
change_commits();
|
|
|
|
change_readme();
|
|
|
|
change_wiki();
|
|
|
|
});
|
2015-09-22 15:59:12 +01:00
|
|
|
|
2015-08-25 14:48:58 +01:00
|
|
|
$(document).on('ready', function() {
|
2015-08-28 15:52:12 +01:00
|
|
|
console.log("Ready");
|
2015-08-28 15:00:39 +01:00
|
|
|
change_comments();
|
2015-09-22 15:59:12 +01:00
|
|
|
change_commits();
|
2015-08-28 15:00:39 +01:00
|
|
|
change_readme();
|
2015-09-22 15:30:37 +01:00
|
|
|
change_wiki();
|
2015-08-25 14:48:58 +01:00
|
|
|
});
|
2015-09-22 15:59:12 +01:00
|
|
|
|
2015-09-22 15:30:37 +01:00
|
|
|
console.log('Github');
|