Skip to content

Commit

Permalink
Do not render until form is initialized (matomo-org#14016)
Browse files Browse the repository at this point in the history
* Do not render until form is initialized

* Update screenshot
  • Loading branch information
c960657 authored and sgiehl committed Feb 25, 2019
1 parent 4f7150f commit a7510a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Expand Up @@ -79,12 +79,14 @@
report.hour = adjustHourToTimezone(report.hour, getTimeZoneDifferenceInHours());
updateReportHourUtc(report);

$('[name=reportsList] input').prop('checked', false);
setTimeout(function() {
$('[name=reportsList] input').prop('checked', false);

var key;
for (key in report.reports) {
$('.' + report.type + ' [report-unique-id=' + report.reports[key] + ']').prop('checked', 'checked');
}
var key;
for (key in report.reports) {
$('.' + report.type + ' [report-unique-id=' + report.reports[key] + ']').prop('checked', 'checked');
}
});

report['format' + report.type] = report.format;

Expand Down
2 changes: 1 addition & 1 deletion plugins/ScheduledReports/templates/_addReport.twig
@@ -1,7 +1,7 @@
<div piwik-content-block
content-title="{{ 'ScheduledReports_CreateAndScheduleReport'|translate|e('html_attr') }}"
class="entityAddContainer"
ng-show="manageScheduledReport.showReportForm">
ng-if="manageScheduledReport.showReportForm">
<div class='clear'></div>
<form id='addEditReport' piwik-form ng-submit="manageScheduledReport.submitReport()">

Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a7510a3

Please sign in to comment.