Hi
Had a user pointing out how irritating it was that the response.flash never
goes away automatically. Found this fix thou in the group, how about making
a standard 4 second fadeout on it?
in web2py.js:
var flashBox = jQuery(".flash"), flashTimer;
flashBox.click(function(){
if (flashTimer) clearTimeout(flashTimer);
flashBox.fadeOut(400, function(){jQuery(".flash").html('')});
});
flashTimer = setTimeout(function(){flashBox.fadeOut(400, function(){jQuery
(".flash").html('')});}, 4000);
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.