we should add some features to the standard flash message .... there are
some messages that are good to behave as "sticky" (click ensures the
message is read by the user) and some that are "niceties" that can fade out
.
We should only agree on which features use and what variables use as a
standard.
I'm adding it to the roadmap but feel free to fiel a bug on googlecode
pointing to this thread.
On Tuesday, March 26, 2013 4:36:43 PM UTC+1, Mika Sjöman wrote:
>
> 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.