X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/662a8a111721df714e9c95f94db91d2d03d7b19d..3f93dcc04535d7235539bd3eafc81f9278714bc3:/platforma/static/js/main.js?ds=inline diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 15099585..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 = ""; @@ -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 }, @@ -896,6 +896,9 @@ $(function() { } $(window).resize(); }); - + + $(window).bind('beforeunload', function(event) { + return "Na stronie mogą być niezapisane zmiany."; + }); });