add js to manage the generate video button

This commit is contained in:
Isaac Connor 2021-10-28 10:46:26 -04:00
parent 2de36f01db
commit 7568dd63ed
1 changed files with 8 additions and 2 deletions

View File

@ -708,7 +708,7 @@ function renameEvent() {
} }
function exportEvent() { function exportEvent() {
window.location.assign('?view=export&eid='+eventData.Id); window.location.assign('?view=export&eids[]='+eventData.Id);
} }
function showEventFrames() { function showEventFrames() {
@ -1009,7 +1009,13 @@ function initPage() {
// Manage the EXPORT button // Manage the EXPORT button
bindButton('#exportBtn', 'click', null, function onExportClick(evt) { bindButton('#exportBtn', 'click', null, function onExportClick(evt) {
evt.preventDefault(); evt.preventDefault();
window.location.assign('?view=export&eids[]='+eventData.Id); exportEvent();
});
// Manage the generateVideo button
bindButton('#videoBtn', 'click', null, function onExportClick(evt) {
evt.preventDefault();
videoEvent();
}); });
// Manage the DOWNLOAD VIDEO button // Manage the DOWNLOAD VIDEO button