closeflash patch, thanks Paolo, issue 1191

This commit is contained in:
mdipierro
2012-12-03 16:06:27 -06:00
parent b92e169b69
commit 3a05be49f6
7 changed files with 25 additions and 13 deletions
+6 -2
View File
@@ -102,8 +102,12 @@ function web2py_ajax_page(method, action, data, target) {
web2py_ajax_init('#'+target);
if(command)
eval(decodeURIComponent(command));
if(flash)
jQuery('.flash').html(decodeURIComponent(flash)).slideDown();
if(flash) {
jQuery('.flash')
.html(decodeURIComponent(flash))
.append('<span id="closeflash">&times;</span>')
.slideDown();
}
}
});
}