Fixed search. Changes stylesheet name, so changes can propagate faster.
[redakcja.git] / platforma / static / js / main.js
index 1509958..d42af82 100644 (file)
@@ -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.";                                                             
+       });                
 
 });