update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* Piwik - Web Analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -36,23 +36,23 @@ function formSetEditReport(idReport) {
|
|||
$('#report_hour').val(report.hour);
|
||||
$('[name=report_format].' + report.type + ' option[value=' + report.format + ']').prop('selected', 'selected');
|
||||
|
||||
var selectorReportFormat = 'select[name=report_format].' + $('#report_type').val();
|
||||
$(selectorReportFormat).change( toggleDisplayOptionsByFormat );
|
||||
$('select[name=report_type]').change( toggleDisplayOptionsByFormat );
|
||||
$('select[name=report_format]').change( toggleDisplayOptionsByFormat );
|
||||
|
||||
// When CSV is selected, hide "Display options"
|
||||
toggleDisplayOptionsByFormat();
|
||||
|
||||
function toggleDisplayOptionsByFormat() {
|
||||
var selectorReportFormat = 'select[name=report_format].' + $('#report_type').val();
|
||||
var format = $(selectorReportFormat).val();
|
||||
var displayOptionsSelector = $('#row_report_display_options');
|
||||
if (format == 'csv') {
|
||||
if (format == 'csv' || format == 'sms') {
|
||||
displayOptionsSelector.hide();
|
||||
} else {
|
||||
displayOptionsSelector.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$('[name=reportsList] input').prop('checked', false);
|
||||
|
||||
var key;
|
||||
|
|
@ -67,7 +67,7 @@ function formSetEditReport(idReport) {
|
|||
|
||||
function getReportAjaxRequest(idReport, defaultApiMethod) {
|
||||
var parameters = {};
|
||||
piwikHelper.lazyScrollTo(".centerLargeDiv>h2", 400);
|
||||
piwikHelper.lazyScrollTo(".emailReports>h2", 400);
|
||||
parameters.module = 'API';
|
||||
parameters.method = defaultApiMethod;
|
||||
if (idReport == 0) {
|
||||
|
|
@ -143,6 +143,7 @@ function initManagePdf() {
|
|||
var idReport = $(this).attr('idreport');
|
||||
var parameters = getReportAjaxRequest(idReport, 'ScheduledReports.sendReport');
|
||||
parameters.idReport = idReport;
|
||||
parameters.force = true;
|
||||
|
||||
var ajaxHandler = new ajaxHelper();
|
||||
ajaxHandler.addParams(parameters, 'POST');
|
||||
|
|
@ -154,7 +155,7 @@ function initManagePdf() {
|
|||
});
|
||||
|
||||
// Delete Report
|
||||
$('a[name=linkDeleteReport]').click(function () {
|
||||
$('.delete-report').click(function () {
|
||||
var idReport = $(this).attr('id');
|
||||
|
||||
function onDelete() {
|
||||
|
|
@ -172,7 +173,7 @@ function initManagePdf() {
|
|||
});
|
||||
|
||||
// Edit Report click
|
||||
$('a[name=linkEditReport]').click(function () {
|
||||
$('.edit-report').click(function () {
|
||||
var idReport = $(this).attr('id');
|
||||
formSetEditReport(idReport);
|
||||
$('.entityAddContainer').show();
|
||||
|
|
@ -187,7 +188,7 @@ function initManagePdf() {
|
|||
});
|
||||
|
||||
// Add a Report click
|
||||
$('#linkAddReport').click(function () {
|
||||
$('#add-report').click(function () {
|
||||
$('.entityAddContainer').show();
|
||||
$('#entityEditContainer').hide();
|
||||
formSetEditReport(/*idReport = */0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue