sexy error message
[redakcja.git] / redakcja / static / js / wiki / view_editor_wysiwyg.js
index ad48a21..37e8613 100644 (file)
                 $('#html-view').html(element);
                 _finalize(success);
             },
-            error: function(text){
-                $('#html-view').html('<p class="error">Wystąpił błąd:</p><pre>'+text+'</pre>');
+            error: function(text, source){
+                $('#html-view').html('<p class="error">Wystąpił błąd:</p><p>'+text+'</p><pre>'+source.replace(/&/g, '&amp;').replace(/</g, '&lt;')+'</pre>');
                 _finalize(failure);
             }
         });