Since this became pertinent to my needs recently, I made the following change to web2py.js (currently line 42) to only close the flash message when clicking on the "x" (span): before: doc.on('click', '.flash', function(e){var t=jQuery(this); if(t.css('top')=='0px') t.slideUp('slow'); else t.fadeOut(); e.preventDefault();}); after: doc.on('click', '.flash span', function(e){var t=jQuery('.flash'); if(t.css('top')=='0px') t.slideUp('slow'); else t.fadeOut(); e.preventDefault();});
On Tuesday, August 28, 2012 4:15:26 PM UTC-7, czamb wrote: > > Is it possible to get some html content into the session.flash message? > I would like to include an "undo" link for a delete action. > Could also be nice to easily access newly created content. > Thank you. > --