Clean up .button and .button[disabled] CSS classes, add spinner and gray-out buttons after clicking Publish or Update post.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2009-08-25 05:14:49 +00:00
parent 8d4223adb3
commit e9ce147405
14 changed files with 145 additions and 107 deletions

View File

@@ -190,6 +190,7 @@ if ( ( 'edit' == $action ) && current_user_can("delete_${post_type}", $post->ID)
</div>
<div id="publishing-action">
<img src="images/wpspin_light.gif" id="ajax-loading" style="visibility:hidden;" alt="" />
<?php
if ( !in_array( $post->post_status, array('publish', 'future', 'private') ) || 0 == $post->ID ) {
if ( $can_publish ) :