PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 5.0.1
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v5.0.1
5.0.1 4.1.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.1.2 2.5.0 2.5.3 All 39 releases
← All changes | freemius/templates/clone-resolution-js.php +14 -4 2.5.0 → 5.0.1 View file →
@@ -54,24 +54,34 @@
54 54 },
55 55 beforeSend: function() {
56 56 $body.css( { cursor: 'wait' } );
57 57
58 - $cloneResolutionNotice.find( '.button' ).addClass( 'disabled' );
58 + $this.addClass( 'disabled' );
59 59
60 + if ( $this.attr( 'id' ) === 'fs_temporary_duplicate_license_activation_link' ) {
61 + $this.append( '<i class="fs-ajax-spinner"></i>' );
62 + }
63 +
60 64 $( window ).on( 'beforeunload', beforeUnload );
61 65 },
62 66 success : function( resultObj ) {
63 67 $( window ).off( 'beforeunload', beforeUnload );
64 68
65 - if ( resultObj.data.redirect_url && '' !== resultObj.data.redirect_url ) {
69 + if (
70 + resultObj.data &&
71 + resultObj.data.redirect_url &&
72 + '' !== resultObj.data.redirect_url
73 + ) {
66 74 window.location = resultObj.data.redirect_url;
67 75 } else {
68 76 window.location.reload();
69 77 }
70 78 },
71 - error : function() {
79 + complete : function() {
72 80 $body.css( { cursor: cursor } );
73 - $cloneResolutionNotice.find( '.button' ).removeClass( 'disabled' );
81 + $this.removeClass( 'disabled' );
82 +
83 + $this.parent().find( '.fs-ajax-spinner' ).remove();
74 84 }
75 85 } );
76 86 } );
77 87 } );