X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f8d11c06c7084e9016cad67d70307c62f1265e51..c506c076add0d88931ff6b4a3ecfbbbb2badac3b:/platforma/static/js/main.js
diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js
index 270e3cc0..15099585 100644
--- a/platforma/static/js/main.js
+++ b/platforma/static/js/main.js
@@ -715,7 +715,7 @@ function refreshHistory(callback){
+'
'+ this[1]+' | ')
});
$.unblockUI();
- callback();
+ if(callback) callback();
}
});
};
@@ -767,9 +767,10 @@ $(function() {
parserConfig: {
useHTMLKludges: false
},
- iframeClass: 'xml-iframe',
+ iframeClass: 'xml-iframe',
textWrapping: true,
- /* lineNumbers: true, */
+ lineNumbers: true,
+ width: "100%",
tabMode: 'spaces',
indentUnit: 0,
initCallback: function(editor) {
@@ -886,11 +887,11 @@ $(function() {
$('.vsplitbar').click(function() {
if ($('#sidebar').width() == 0) {
$('#sidebar').width(480).css({right: 0}).show();
- $('#source-editor, #simple-editor').css({right: 495});
+ $('#editor .editor').css({right: 495});
$('.vsplitbar').css({right: 480}).addClass('active');
} else {
$('#sidebar').width(0).hide();
- $('#source-editor, #simple-editor').css({right: 15});
+ $('#editor .editor').css({right: 15});
$('.vsplitbar').css({right: 0}).removeClass('active');
}
$(window).resize();