[Phpmyadmin-devel] js advice please

Marc Delisle marc at infomarc.info
Mon Dec 30 17:07:06 CET 2013


Le 2013-12-30 10:34, Atul Pratap Singh a écrit :
> On Mon, Dec 30, 2013 at 11:33 PM, Marc Delisle <marc at infomarc.info
> <mailto:marc at infomarc.info>> wrote:
> 
>     Hi,
>     I'm working on a bug [0]. The solution I'm trying is:
> 
>     - use display:none on the throbber
>     - temporarily replace the navi reload image with the throbber image
> 
> Sounds like a better solution!
>  
> 
>     My problem is that the reloading operation is so fast (less than one
>     second) that I cannot see the throbber image. When I add an alert just
>     before putting back the reload image, I have the proof that the throbber
>     image is there.
> 
>     So, how can I ensure that the throbber image stays there at least, say,
>     one or two seconds? I tried with setTimeout() to no avail.
> 
> setTimeout() should have worked to delay it; means, make it visible on
> start of some operation; and on finishing operation, put setTimeout() to
> hide it sometime later..

Please have a look at
https://github.com/phpmyadmin/phpmyadmin/commit/c1d8d80f754bf2d9853c4b8a71d1be1358a7b6d0

(current QA_4_1); it looks ok to me and I'll port to master if it looks
ok to others.


-- 
Marc Delisle
http://infomarc.info | http://phpmyadmin.net




More information about the Developers mailing list