Skip to content

Instantly share code, notes, and snippets.

@pospi
Created September 13, 2013 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pospi/6547451 to your computer and use it in GitHub Desktop.
Save pospi/6547451 to your computer and use it in GitHub Desktop.
Reset the Wordpress admin UI to its default state after failing some clientside validation upon saving.
$('#publishing-action')
.find('.spinner').hide().end()
.find('#publish').removeClass('button-primary-disabled');
$('#save-action')
.find('.spinner').hide().end()
.find('#save-post').removeClass('button-disabled');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment