Prevent accidental multiple click when creating new categories. Props mdawaffe. fixes #17936
git-svn-id: https://develop.svn.wordpress.org/trunk@20650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
82c5f5ed9b
commit
3ea234a24b
@ -314,12 +314,14 @@ jQuery(document).ready( function($) {
|
||||
if ( !$('#new'+taxonomy).val() )
|
||||
return false;
|
||||
s.data += '&' + $( ':checked', '#'+taxonomy+'checklist' ).serialize();
|
||||
$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', true );
|
||||
return s;
|
||||
};
|
||||
|
||||
catAddAfter = function( r, s ) {
|
||||
var sup, drop = $('#new'+taxonomy+'_parent');
|
||||
|
||||
$( '#' + taxonomy + '-add-submit' ).prop( 'disabled', false );
|
||||
if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
|
||||
drop.before(sup);
|
||||
drop.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user