add a button to go to the stats view
This commit is contained in:
parent
6796126ae2
commit
5b40589d61
|
@ -92,6 +92,7 @@ xhtmlHeaders(__FILE__, translate('Frame').' - '.$Event->Id().' - '.$Frame->Frame
|
|||
<button id="backBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Back') ?>" disabled><i class="fa fa-arrow-left"></i></button>
|
||||
<button id="refreshBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Refresh') ?>" ><i class="fa fa-refresh"></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="statsViewBtn" class="btn btn-normal" data-toggle="tooltip" data-placement="top" title="<?php echo translate('Stats').' '.translate('View') ?>" ><i class="fa fa-table"></i></button>
|
||||
</div>
|
||||
|
||||
<h2><?php echo translate('Frame') ?> <?php echo $Event->Id().'-'.$Frame->FrameId().' ('.$Frame->Score().')' ?></h2>
|
||||
|
|
|
@ -134,6 +134,12 @@ function initPage() {
|
|||
}
|
||||
});
|
||||
|
||||
// Manage the Frame STATISTICS VIEW button
|
||||
document.getElementById("statsViewBtn").addEventListener("click", function onViewClick(evt) {
|
||||
evt.preventDefault();
|
||||
window.location.href = thisUrl+'?view=stats&eid='+eid+'&fid='+fid;
|
||||
});
|
||||
|
||||
// Load the frame stats
|
||||
getStat({eid: eid, fid: fid});
|
||||
|
||||
|
|
Loading…
Reference in New Issue