Ticket #32941: 32941.patch
File 32941.patch, 1.2 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
3338 3338 } ); 3339 3339 request = wp.ajax.post( 'customize_save', query ); 3340 3340 3341 //Add disbaled state to save button and all controls. 3342 saveBtn.prop( 'disabled', true ); 3343 $( ".customize-control" ).find( 'input, textarea, select, button' ).prop( 'disabled', true ); 3344 3341 3345 api.trigger( 'save', request ); 3342 3346 3343 3347 request.always( function () { … … 3362 3366 } ); 3363 3367 } 3364 3368 api.trigger( 'error', response ); 3369 3370 //Remove disbaled state from all controls. 3371 $( ".customize-control" ).find( 'input, textarea, select, button' ).prop( 'disabled', false ); 3365 3372 } ); 3366 3373 3367 3374 request.done( function( response ) { … … 3373 3380 api.previewer.send( 'saved', response ); 3374 3381 3375 3382 api.trigger( 'saved', response ); 3383 3384 //Remove disbaled state from all controls. 3385 $( ".customize-control" ).find( 'input, textarea, select, button' ).prop( 'disabled', false ); 3376 3386 } ); 3377 3387 }; 3378 3388