Changeset 31706
- Timestamp:
- 03/10/2015 10:44:25 PM (10 years ago)
- Location:
- trunk/src/wp-admin/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r31705 r31706 2445 2445 2446 2446 save: function() { 2447 var self = this, 2448 query = $.extend( this.query(), { 2449 nonce: this.nonce.save 2450 } ), 2447 var self = this, 2451 2448 processing = api.state( 'processing' ), 2452 2449 submitWhenDoneProcessing, … … 2456 2453 2457 2454 submit = function () { 2458 var request = wp.ajax.post( 'customize_save', query ); 2455 var request, query; 2456 query = $.extend( self.query(), { 2457 nonce: self.nonce.save 2458 } ); 2459 request = wp.ajax.post( 'customize_save', query ); 2459 2460 2460 2461 api.trigger( 'save', request ); -
trunk/src/wp-admin/js/customize-widgets.js
r31594 r31706 1029 1029 data += '&' + $widgetContent.find( '~ :input' ).serialize(); 1030 1030 1031 if ( this._previousUpdateRequest ) { 1032 this._previousUpdateRequest.abort(); 1033 } 1031 1034 jqxhr = $.post( wp.ajax.settings.url, data ); 1035 this._previousUpdateRequest = jqxhr; 1032 1036 1033 1037 jqxhr.done( function( r ) {
Note: See TracChangeset
for help on using the changeset viewer.