1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

modified markdown file view for ie8

This commit is contained in:
llj
2012-08-03 17:41:24 +08:00
parent d1a37121de
commit 8f0e431dc2

View File

@@ -183,12 +183,12 @@
{% endif %}
{% if filetype == 'Markdown' %}
$.ajax({
url: '{{ raw_path }}',
dataType: 'text',
url: url,
dataType: 'json',
cache: false,
success: function(data) {
var converter = new Showdown.converter();
$('#file-view').html('<div id="md-view">' + converter.makeHtml(data) + '</div>');
$('#file-view').html('<div id="md-view">' + converter.makeHtml(data['content']) + '</div>');
$('#md-view').children(':first').css('margin-top', '0');
}
});