Fixed readme display errors. So the test page actually works now!
This commit is contained in:
parent
67c2dba88b
commit
35aa577402
2 changed files with 18 additions and 4 deletions
|
@ -8,7 +8,7 @@ function insert_emoticons(ident, classes) {
|
||||||
image = decoder[i][key];
|
image = decoder[i][key];
|
||||||
key = "(" + key + ")";
|
key = "(" + key + ")";
|
||||||
$(this).html($(this).html().replace(key,
|
$(this).html($(this).html().replace(key,
|
||||||
"<img class='" + classes + "' style='height: 30px; width: auto;' src='" + image + "'/>"
|
"<img class='" + classes + "' style='height: 28px; width: auto;' src='" + image + "'/>"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,7 +8,7 @@ function change_readme() {
|
||||||
|
|
||||||
function change_wiki() {
|
function change_wiki() {
|
||||||
console.log("Changing wiki");
|
console.log("Changing wiki");
|
||||||
insert_emoticons('#markdown-body');
|
insert_emoticons('#wiki-body');
|
||||||
}
|
}
|
||||||
|
|
||||||
function change_commits() {
|
function change_commits() {
|
||||||
|
@ -25,9 +25,23 @@ $('form .timeline-comment textarea[placeholder="Leave a comment"]').on('change i
|
||||||
markdown_decoder('form .timeline-comment textarea[placeholder="Leave a comment"]');
|
markdown_decoder('form .timeline-comment textarea[placeholder="Leave a comment"]');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#markdown-body').on('DOMNodeInserted DOMNodeRemoved change load', change_wiki);
|
$('#wiki-body').on('load change', change_wiki);
|
||||||
|
|
||||||
$('table.timeline-commits').on('change load', change_commits);
|
$('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();
|
||||||
|
});
|
||||||
|
|
||||||
$(document).on('ready', function() {
|
$(document).on('ready', function() {
|
||||||
console.log("Ready");
|
console.log("Ready");
|
||||||
|
|
Reference in a new issue