WordPress.org

Make WordPress Core

Changeset 27913


Ignore:
Timestamp:
04/02/2014 07:24:18 PM (8 years ago)
Author:
ocean90
Message:

Widget Customizer: Restore deferral of previewer-loading class removal until preview is synced.

props westonruter.
fixes #27635.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-widgets.js

    r27909 r27913  
    12861286                        control.setting( r.data.instance );
    12871287                        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' );
    12881291                    }
    12891292
     
    13091312            } );
    13101313            jqxhr.always( function () {
    1311                 control.container.removeClass( 'previewer-loading' );
    13121314                control.container.removeClass( 'widget-form-loading' );
    13131315                inputs.each( function () {
Note: See TracChangeset for help on using the changeset viewer.