change exportEvent to expertEvents

This commit is contained in:
Isaac Connor 2020-04-04 11:53:07 -04:00
parent 402c38725b
commit e2cb8a656d
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ function exportResponse(respObj, respText) {
//window.location.replace( thisUrl+'?view='+currentView+'&'+eids.join('&')+'&exportFile='+respObj.exportFile+'&generated='+((respObj.result=='Ok')?1:0) );
}
function exportEvent( ) {
function exportEvents( ) {
var parms = 'view=event&request=event&action=export';
parms += '&'+$('contentForm').toQueryString();
var query = new Request.JSON( {
@ -87,7 +87,7 @@ function initPage() {
if ( exportReady ) {
startDownload.pass(exportFile).delay(1500);
}
document.getElementById('exportButton').addEventListener('click', exportEvent);
document.getElementById('exportButton').addEventListener('click', exportEvents);
}
window.addEventListener('DOMContentLoaded', initPage);