Skip to content

Commit

Permalink
Fix: Don't open the detailed view if button is disabled (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy authored Feb 7, 2024
1 parent 1d8f12a commit d196f1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions includes/admin/class-bc-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,8 @@ class="brightcove-datetime brightcove-end-date"
<# } #>
</div>
<div class="media-actions">
<a href="#" class="button media-button brightcove edit"><?php esc_html_e( 'Edit', 'brightcove' ); ?></a>
<a href="#" class="button media-button brightcove preview"><?php esc_html_e( 'Preview', 'brightcove' ); ?></a>
<button class="button media-button brightcove edit"><?php esc_html_e( 'Edit', 'brightcove' ); ?></button>
<button class="button media-button brightcove preview"><?php esc_html_e( 'Preview', 'brightcove' ); ?></button>
</div>
</div>
</script>
Expand Down Expand Up @@ -724,14 +724,14 @@ class="brightcove-datetime brightcove-end-date"

<div class="media-actions">
<# if ('preview' === data.detailsMode) { #>
<a href="#" class="button media-button brightcove back"><?php esc_html_e( 'Back', 'brightcove' ); ?></a>
<button class="button media-button brightcove back"><?php esc_html_e( 'Back', 'brightcove' ); ?></button>
<# } else { #>
<# if ( data.images && data.images.thumbnail && data.images.thumbnail.src ) { #>
<a href="#" class="button media-button brightcove edit"><?php esc_html_e( 'Edit', 'brightcove' ); ?></a>
<a href="#" class="button media-button brightcove preview"><?php esc_html_e( 'Preview', 'brightcove' ); ?></a>
<button class="button media-button brightcove edit"><?php esc_html_e( 'Edit', 'brightcove' ); ?></button>
<button class="button media-button brightcove preview"><?php esc_html_e( 'Preview', 'brightcove' ); ?></button>
<# } else { #>
<a href="#" class="button media-button brightcove edit" disabled><?php esc_html_e( 'Edit', 'brightcove' ); ?></a>
<a href="#" class="button media-button brightcove preview" disabled><?php esc_html_e( 'Preview', 'brightcove' ); ?></a>
<button class="button media-button brightcove edit" disabled><?php esc_html_e( 'Edit', 'brightcove' ); ?></button>
<button class="button media-button brightcove preview" disabled><?php esc_html_e( 'Preview', 'brightcove' ); ?></button>
<# } #>
<# } #>
</div>
Expand Down

0 comments on commit d196f1d

Please sign in to comment.