Browse Source

Fixed partial csv file download (#57)

Thanks for the contribution! 👍
4.3
sergey-safarov 8 years ago
committed by JRMaitre
parent
commit
9b8b80d2d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      submodules/callLogs/callLogs.js

+ 1
- 1
submodules/callLogs/callLogs.js View File

@ -149,7 +149,7 @@ define(function(require) {
template.find('.download-csv').on('click', function(e) {
var fromDateTimestamp = monster.util.dateToBeginningOfGregorianDay(fromDate),
toDateTimestamp = monster.util.dateToEndOfGregorianDay(toDate),
url = self.apiUrl + 'accounts/' + self.accountId + '/cdrs?created_from=' + fromDateTimestamp + '&created_to=' + toDateTimestamp + '&accept=text/csv&auth_token=' + self.getAuthToken();
url = self.apiUrl + 'accounts/' + self.accountId + '/cdrs?created_from=' + fromDateTimestamp + '&created_to=' + toDateTimestamp + '&paginate=false&accept=text/csv&auth_token=' + self.getAuthToken();
window.open(url, '_blank');
});


Loading…
Cancel
Save