Skip to content

Commit

Permalink
Merge pull request #2072 from rtCamp/fix/media-total-count-error
Browse files Browse the repository at this point in the history
 Fix Count of Media after Deleting
  • Loading branch information
the-hercules authored Sep 11, 2024
2 parents 65d2790 + 09a88d6 commit 2db114a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/assets/js/rtMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,8 @@ jQuery( 'document' ).ready( function( $ ) {
data: data,
dataType: 'JSON',
success: function( response ) {
// Reload the current page
window.location.reload();

if ( 'rtmedia-media-deleted' === response.data.code ) {
//Media delete
Expand Down
Loading

0 comments on commit 2db114a

Please sign in to comment.