Merge "Remove the loading spinner at the end, not halfway through loading"

This commit is contained in:
jenkins-bot 2014-11-05 21:00:53 +00:00 committed by Gerrit Code Review
commit ca7ef3be1f

View file

@ -352,8 +352,8 @@
getTarget().done( function ( target ) {
ve.track( 'Edit', { action: 'edit-link-click' } );
target.activate();
} ).always( function () { $spinner.remove(); } );
target.activate().always( function () { $spinner.remove(); } );
} );
},
onEditSectionLinkClick: function ( e ) {
@ -372,8 +372,8 @@
getTarget().done( function ( target ) {
ve.track( 'Edit', { action: 'section-edit-link-click' } );
target.saveEditSection( $( e.target ).closest( 'h1, h2, h3, h4, h5, h6' ).get( 0 ) );
target.activate();
} ).always( function () { $spinner.remove(); } );
target.activate().always( function () { $spinner.remove(); } );
} );
}
};