Skip to content

Commit

Permalink
Merge pull request #30 from humanmade/hotfix-attachment-polling
Browse files Browse the repository at this point in the history
Hotfix: Remove Labels polling from Attachment Details view
  • Loading branch information
joehoyle authored May 1, 2024
2 parents 7d54241 + 643ceeb commit 97ff7fb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions inc/admin/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,7 @@ function get_keywords_html( $post_id, $limit = 10 ) : string {
.compat-field-hm-aws-rekognition-labels .spinner { float: none; margin: -2px 5px 0 0; }
.compat-field-hm-aws-rekognition-labels p { margin: 6px 0; }
</style>
<p><span class="spinner is-active"></span> %1$s</p>
<script>
( function () {
setTimeout( function () {
wp.media.model.Attachment.get( %2$d ).fetch();
}, 5000 );
jQuery( document ).on( \'heartbeat-tick\', function ( event, data ) {
wp.media.model.Attachment.get( %2$d ).fetch();
} );
} )();
</script>',
<p><span class="spinner is-active"></span> %1$s</p>',
esc_html__( 'Analyzing...', 'hm-aws-rekognition' ),
$post_id
);
Expand Down

0 comments on commit 97ff7fb

Please sign in to comment.