Permalink
Browse files

Fix importer missing spinner

  • Loading branch information...
Charlie Merland
Charlie Merland committed Sep 11, 2017
1 parent 256628a commit 5bb6925b8081242404bca84987a2968deaff2de1
Showing with 10 additions and 2 deletions.
  1. +8 −0 assets/css/admin/wpmoly-importer.css
  2. +2 −2 assets/js/admin/wpmoly-importer-movies.js
@@ -327,6 +327,14 @@
margin: 6px 0 0 -8px;
}
#wpmoly_import .spinner.spinning,
#wpmoly_imported .spinner.spinning,
#wpmoly_import_queue .spinner.spinning {
display: inline-block;
opacity: 1;
visibility: visible;
}
#wpmoly_import_queue .spinner {
margin-left: -2px;
}
@@ -82,7 +82,7 @@ wpmoly = wpmoly || {};
movies: $( wpmoly_import_movies.list ).val(),
},
beforeSend: function() {
$( wpmoly_import_movies.button ).prev( '.spinner' ).css( { display: 'inline-block' } );
$( wpmoly_import_movies.button ).prev( '.spinner' ).addClass( 'spinning' );
},
error: function( response ) {
wpmoly_state.clear();
@@ -136,7 +136,7 @@ wpmoly = wpmoly || {};
},
complete: function( r ) {
wpmoly.update_nonce( 'import-movies-list', r.responseJSON.nonce );
$( wpmoly_import_movies.button ).prev( '.spinner' ).css( { display: 'none' } );
$( wpmoly_import_movies.button ).prev( '.spinner' ).removeClass( 'spinning' );
}
});
};

0 comments on commit 5bb6925

Please sign in to comment.