diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
index 480806a..a141893 100644
|
|
var WidgetCustomizer = ( function ($) { |
1285 | 1285 | control.is_widget_updating = true; // suppress triggering another updateWidget |
1286 | 1286 | control.setting( r.data.instance ); |
1287 | 1287 | control.is_widget_updating = false; |
| 1288 | } else { |
| 1289 | // no change was made, so stop the spinner now instead of when the preview would updates |
| 1290 | control.container.removeClass( 'previewer-loading' ); |
1288 | 1291 | } |
1289 | 1292 | |
1290 | 1293 | if ( complete_callback ) { |
… |
… |
var WidgetCustomizer = ( function ($) { |
1308 | 1311 | } |
1309 | 1312 | } ); |
1310 | 1313 | jqxhr.always( function () { |
1311 | | control.container.removeClass( 'previewer-loading' ); |
1312 | 1314 | control.container.removeClass( 'widget-form-loading' ); |
1313 | 1315 | inputs.each( function () { |
1314 | 1316 | $( this ).removeData( 'state' + update_number ); |