fixed encoding in flash messages, thanks Vlad

This commit is contained in:
Massimo Di Pierro
2012-05-28 13:23:40 -05:00
parent 1208f59ca8
commit 25ecaee096
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ function doClickSave() {
success: function(json,text,xhr){
// show flash message (if any)
var flash=xhr.getResponseHeader('web2py-component-flash');
var flash=decodeURIComponent(xhr.getResponseHeader('web2py-component-flash'));
if (flash) jQuery('.flash').html(flash).slideDown();
else jQuery('.flash').hide();
@@ -149,7 +149,7 @@ function doToggleBreakpoint(filename, url) {
success: function(json,text,xhr){
// show flash message (if any)
var flash=xhr.getResponseHeader('web2py-component-flash');
var flash=decodeURIComponent(xhr.getResponseHeader('web2py-component-flash'));
if (flash) jQuery('.flash').html(flash).slideDown();
else jQuery('.flash').hide();
try {