tentative fix to ajax problem, thanks Vladyslav, needs test, may break flash=DIV()

This commit is contained in:
mdipierro
2012-07-31 22:03:46 -05:00
parent d259939263
commit 4ffb597954
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -72,7 +72,7 @@ function doClickSave() {
// show flash message (if any)
var flash=xhr.getResponseHeader('web2py-component-flash');
if (flash) jQuery('.flash').html(flash).slideDown();
if (flash) jQuery('.flash').html(decodeURIComponent(flash)).slideDown();
else jQuery('.flash').hide();
// reenable disabled submit button
@@ -149,8 +149,8 @@ function doToggleBreakpoint(filename, url) {
success: function(json,text,xhr){
// show flash message (if any)
var flash=decodeURIComponent(xhr.getResponseHeader('web2py-component-flash'));
if (flash) jQuery('.flash').html(flash).slideDown();
var flash=xhr.getResponseHeader('web2py-component-flash');
if (flash) jQuery('.flash').html(decodeURIComponent(flash)).slideDown();
else jQuery('.flash').hide();
try {
if (json.error) {