Discussion:
HHow do you use WordPress's built in spinner?
Funkatron
2013-11-20 04:31:23 UTC
Permalink
So Wordpress uses a wating spinner to indicate when its doing something,
like when you hit the submit button when you are doing something AJAX-y. I
was wondering how exactly do you replicate this if a developer wanted to
use it for their plugins? I can't seem to replicate it.
Josh Pollock
2013-11-28 20:06:47 UTC
Permalink
This is an old thread, but I have the same question and thought I'd share
my detective work.

Source for the gif is /wp-admin/images/spinner-2x.gif. In the admin
it's in .postbox
.spinner which has its display property set to none. This means you'd be
able to use it very easily, would just need to use a few lines of jQuery to
show and hide it.
Post by Funkatron
So Wordpress uses a wating spinner to indicate when its doing something,
like when you hit the submit button when you are doing something AJAX-y. I
was wondering how exactly do you replicate this if a developer wanted to
use it for their plugins? I can't seem to replicate it.
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Funkatron
2013-12-04 01:46:43 UTC
Permalink
Thanks for the info



--
View this message in context: http://wordpress-hackers.1065353.n5.nabble.com/HHow-do-you-use-WordPress-s-built-in-spinner-tp42888p42999.html
Sent from the Wordpress Hackers mailing list archive at Nabble.com.
Loading...