reverted revision 2799e09d6bb4, until better idea, because of backward compatibility
This commit is contained in:
@@ -71,7 +71,7 @@ function doClickSave() {
|
||||
success: function(json,text,xhr){
|
||||
|
||||
// show flash message (if any)
|
||||
var flash=decodeURIComponent(xhr.getResponseHeader('web2py-component-flash'));
|
||||
var flash=xhr.getResponseHeader('web2py-component-flash');
|
||||
if (flash) jQuery('.flash').html(flash).slideDown();
|
||||
else jQuery('.flash').hide();
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ function web2py_ajax_page(method, action, data, target) {
|
||||
var html=xhr.responseText;
|
||||
var content=xhr.getResponseHeader('web2py-component-content');
|
||||
var command=xhr.getResponseHeader('web2py-component-command');
|
||||
var flash=decodeURIComponent(xhr.getResponseHeader('web2py-component-flash'));
|
||||
var flash=xhr.getResponseHeader('web2py-component-flash');
|
||||
var t = jQuery('#'+target);
|
||||
if(content=='prepend') t.prepend(html);
|
||||
else if(content=='append') t.append(html);
|
||||
|
||||
Reference in New Issue
Block a user