add Frames button to event view
This commit is contained in:
parent
3fd50bb01d
commit
5fa8cbf158
|
@ -145,6 +145,7 @@ if ( !$Event->Id() ) {
|
|||
<button id="exportBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Export') ?>"><i class="fa fa-external-link"></i></button>
|
||||
<button id="downloadBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('DownloadVideo') ?>"><i class="fa fa-download"></i></button>
|
||||
<button id="statsBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Stats') ?>" ><i class="fa fa-info"></i></button>
|
||||
<button id="framesBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Frames') ?>" ><i class="fa fa-picture-o"></i></button>
|
||||
<button id="deleteBtn" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Delete') ?>"><i class="fa fa-trash"></i></button>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1288,6 +1288,12 @@ function initPage() {
|
|||
}
|
||||
});
|
||||
|
||||
// Manage the FRAMES Button
|
||||
document.getElementById("framesBtn").addEventListener("click", function onFramesClick(evt) {
|
||||
evt.preventDefault();
|
||||
window.location.assign('?view=frames&eid='+eventData.Id);
|
||||
});
|
||||
|
||||
// Manage the DELETE button
|
||||
document.getElementById("deleteBtn").addEventListener("click", function onDeleteClick(evt) {
|
||||
if ( ! canEdit.Events ) {
|
||||
|
|
Loading…
Reference in New Issue