fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05124c8
)
Fixed broken error messages in Firefox. Fixes #373
author
Łukasz Rekucki
<lrekucki@gmail.com>
Mon, 8 Mar 2010 12:39:44 +0000
(13:39 +0100)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Mon, 8 Mar 2010 12:39:44 +0000
(13:39 +0100)
platforma/static/js/main.js
patch
|
blob
|
history
diff --git
a/platforma/static/js/main.js
b/platforma/static/js/main.js
index
8aff731
..
c7e0af8
100644
(file)
--- a/
platforma/static/js/main.js
+++ b/
platforma/static/js/main.js
@@
-301,7
+301,11
@@
function transform(editor, callback) {
callback();
}
}, error: function(text) {
callback();
}
}, error: function(text) {
- $('#html-view').html('<p class="error">Wystąpił błąd:</p><pre>' + text + '</pre>');
+ var message = $('<pre></pre>');
+ message.text(text);
+ $('#html-view').html('<p class="error">Wystąpił błąd:</p><pre>' +
+ message.html() + '</pre>');
+
$.unblockUI();
if (callback) {
callback();
$.unblockUI();
if (callback) {
callback();