Skip to content

Commit f3aece8

Browse files
committed
Add callback to go back to previous page instead inline JS
1 parent fdb46eb commit f3aece8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

admin/rt-retranscode-admin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,11 @@ function RetranscodeMediaFinishUp() {
521521
}
522522
$("#message").html("<p><strong>" + rt_resulttext + "</strong></p>");
523523
$("#message").show();
524-
$( '#retranscode-goback' ).attr( 'href', 'javascript:history.go(-1)' );
524+
525+
$( '#retranscode-goback' ).on( 'click', function () {
526+
window.history.go( -1 );
527+
} );
528+
525529
}
526530
<?php
527531
// translators: Media ID.

0 commit comments

Comments
 (0)