@@ -221,6 +219,8 @@
var editor = ace.edit("ace-editor");
editor.setTheme("ace/theme/github");
+ editor.setShowPrintMargin(false);
+ editor.getSession().setUseWrapMode('free');
editor.getSession().setMode("ace/mode/markdown");
editor.getSession().setValue(window.wiki_page_content);
window.editor = editor; // Store the editor in the window object so the anonymous function can use it.
@@ -405,10 +405,11 @@
resource_id: window.wiki_resource_id
},
function (data) {
+ console.log(data);
if (data.success) {
var modalBody = $('#generic-modal-body-{{$wikiModalID}}');
modalBody.html('
'+data.diff+'
');
- $('.modal-dialog').width('80%');
+ $('.modal-dialog').addClass('modal-lg');
$("#generic-modal-ok-{{$wikiModalID}}").off('click');
$("#generic-modal-ok-{{$wikiModalID}}").click(function () {
wiki_revert_page(compareCommit);
@@ -545,4 +546,4 @@
$('#new-wiki-button').hide();
{{/if}}
});
-
\ No newline at end of file
+
diff --git a/view/tpl/wiki_page_history.tpl b/view/tpl/wiki_page_history.tpl
index fef5d93a5..9a313f767 100644
--- a/view/tpl/wiki_page_history.tpl
+++ b/view/tpl/wiki_page_history.tpl
@@ -1,4 +1,8 @@