X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ad64a2d9487bb320ea88efc58c8bd9cc42d9c71e..3f93dcc04535d7235539bd3eafc81f9278714bc3:/platforma/static/js/main.js?ds=inline
diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js
index 3f4d30c2..f94e04ee 100644
--- a/platforma/static/js/main.js
+++ b/platforma/static/js/main.js
@@ -398,7 +398,7 @@ function html(element) {
return true;
}
- var ANNOT_ALLOWED = ['wyroznienie'];
+ var ANNOT_ALLOWED = ['wyroznienie', 'slowo_obce', 'osoba'];
function html2plainText(fragment) {
var text = "";
@@ -715,7 +715,7 @@ function refreshHistory(callback){
+'
'+ this[1]+' | ')
});
$.unblockUI();
- callback();
+ if(callback) callback();
}
});
};
@@ -763,7 +763,7 @@ $(function() {
CodeMirror.fromTextArea('id_text', {
parserfile: 'parsexml.js',
path: STATIC_URL + "js/lib/codemirror/",
- stylesheet: STATIC_URL + "css/xmlcolors.css",
+ stylesheet: STATIC_URL + "css/xmlcolors_15032010.css",
parserConfig: {
useHTMLKludges: false
},
@@ -887,15 +887,18 @@ $(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();
});
-
+
+ $(window).bind('beforeunload', function(event) {
+ return "Na stronie mogÄ
byÄ niezapisane zmiany.";
+ });
});