Specify a function name for data-on-click to fix the Back/Close button for Events. Fixes #3033

This commit is contained in:
Matthew Noorenberghe 2020-09-04 10:23:56 -04:00
parent 77cca7efac
commit bd829f8aa1
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ if ( !$Event->Id() ) {
human_filesize($Event->DiskSpace(null)) . ' on ' . validHtmlStr($Event->Storage()->Name()).
( $Event->SecondaryStorageId() ? ', '.validHtmlStr($Event->SecondaryStorage()->Name()) : '' )
?></span>
<div id="closeWindow"><a href="#" data-on-click="<?php echo $popup ? 'window.close()' : 'window.history.back();return false;' ?>"><?php echo $popup ? translate('Close') : translate('Back') ?></a></div>
<div id="closeWindow"><a href="#" data-on-click="<?php echo $popup ? 'closeWindow' : 'backWindow' ?>"><?php echo $popup ? translate('Close') : translate('Back') ?></a></div>
</div>
<div id="menuBar1">
<div id="nameControl">