PluginProbe
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs / 2.6.6
BlockSpare – Gutenberg Blocks, AI Content Generator & Site Builder for News, Magazine & Blogs v2.6.6
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 +4 -14 5.0.1 → 2.6.6 View file →
@@ -54,34 +54,24 @@
54 54 },
55 55 beforeSend: function() {
56 56 $body.css( { cursor: 'wait' } );
57 57
58 - $this.addClass( 'disabled' );
58 + $cloneResolutionNotice.find( '.button' ).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 -
64 60 $( window ).on( 'beforeunload', beforeUnload );
65 61 },
66 62 success : function( resultObj ) {
67 63 $( window ).off( 'beforeunload', beforeUnload );
68 64
69 - if (
70 - resultObj.data &&
71 - resultObj.data.redirect_url &&
72 - '' !== resultObj.data.redirect_url
73 - ) {
65 + if ( resultObj.data.redirect_url && '' !== resultObj.data.redirect_url ) {
74 66 window.location = resultObj.data.redirect_url;
75 67 } else {
76 68 window.location.reload();
77 69 }
78 70 },
79 - complete : function() {
71 + error : function() {
80 72 $body.css( { cursor: cursor } );
81 - $this.removeClass( 'disabled' );
82 -
83 - $this.parent().find( '.fs-ajax-spinner' ).remove();
73 + $cloneResolutionNotice.find( '.button' ).removeClass( 'disabled' );
84 74 }
85 75 } );
86 76 } );
87 77 } );