mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Merge remote-tracking branch 'origin/master' into readme-box
Conflicts: web/js/main.js
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
$(function () {
|
||||
$('.dropdown-toggle').dropdown();
|
||||
var mode = $('#sourcecode').attr('language');
|
||||
|
||||
CodeMirror.fromTextArea(document.getElementById("sourcecode"), {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
lineWrapping: true,
|
||||
readOnly: true,
|
||||
mode: mode
|
||||
});
|
||||
});
|
||||
if ($('#sourcecode').length) {
|
||||
var mode = $('#sourcecode').attr('language');
|
||||
CodeMirror.fromTextArea(document.getElementById("sourcecode"), {
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
lineWrapping: true,
|
||||
readOnly: true,
|
||||
mode: mode
|
||||
});
|
||||
};
|
||||
|
||||
if ($('#readme-content').length) {
|
||||
if ($('#readme-content').length) {
|
||||
var converter = new Showdown.converter();
|
||||
$('#readme-content').html(converter.makeHtml($('#readme-content').text()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user