Make WordPress Core

Changeset 20650


Ignore:
Timestamp:
04/30/2012 08:50:50 PM (13 years ago)
Author:
ryan
Message:

Prevent accidental multiple click when creating new categories. Props mdawaffe. fixes #17936

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.dev.js

    r20164 r20650  
    315315                return false;
    316316            s.data += '&' + $( ':checked', '#'+taxonomy+'checklist' ).serialize();
     317            $( '#' + taxonomy + '-add-submit' ).prop( 'disabled', true );
    317318            return s;
    318319        };
     
    321322            var sup, drop = $('#new'+taxonomy+'_parent');
    322323
     324            $( '#' + taxonomy + '-add-submit' ).prop( 'disabled', false );
    323325            if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
    324326                drop.before(sup);
Note: See TracChangeset for help on using the changeset viewer.