Add return false to window.history.back

Adding this makes it work in Safari
This commit is contained in:
Steve Gilvarry 2018-03-04 08:37:21 +11:00 committed by GitHub
parent 47ec0abf11
commit db8ab28845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ if ( $pages > 1 ) {
?>
</div>
<div id="controls">
<a href="#" onclick="window.history.back();"><?php echo translate('Back') ?></a>
<a href="#" onclick="window.history.back();return false;"><?php echo translate('Back') ?></a>
<a id="timelineLink" href="?view=timeline<?php echo $filterQuery ?>"><?php echo translate('ShowTimeline') ?></a>
</div>
</div>