Re: [web2py] Hide flash message after some elapsed time instead of on click

2016-07-13 Thread Jim Brouzoulis
Thank you very much for your help! (...and sorry for the late reply)

It didn't work at first but then I noticed a typo: the class should be 
'.w2p_flash'.

Regards
// Jim


Den måndag 11 juli 2016 kl. 10:49:08 UTC+2 skrev Massimiliano:
>
> Hi Jim, 
> I’m doing it in this way:
>
> Edit static/web2py.js search for /*helper for flash messages*/
>
> and add this command:
>
> setTimeout(‘jQuery(".flash").fadeOut("slow")',5000);
>
> just after:
>
> if (flash.html()) flash.append('  
> ').slideDown();
>
> Adjust 5000 that stands for 5 secods to your needs.
>
>
> On Thu, Jul 7, 2016 at 6:00 PM, Jim Brouzoulis <jim.bro...@chalmers.se 
> > wrote:
>
>> Hi everyone,
>>
>> Can I easily customise the web2py.js file to automatically hide/fade out 
>> the flash message after some given time (like a few seconds) instead of 
>> clicking on it? If so, how? 
>> I have a feeling that the solution is probably not that complicated but 
>> my js-skills aren't very impressive :)
>>
>> Regards
>> // Jim
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> 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 web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Massimiliano
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Hide flash message after some elapsed time instead of on click

2016-07-11 Thread Jim Brouzoulis
Hi everyone,

Can I easily customise the web2py.js file to automatically hide/fade out 
the flash message after some given time (like a few seconds) instead of 
clicking on it? If so, how? 
I have a feeling that the solution is probably not that complicated but my 
js-skills aren't very impressive :)

Regards
// Jim

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.