Skip to content
Extraits de code Groupes Projets
Valider 16e88591 rédigé par mattab's avatar mattab
Parcourir les fichiers

Refs #4701 Hide the Display Options settings, when report is CSV, since they don't apply to CSV

parent 8ef0cd18
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,6 +36,23 @@ function formSetEditReport(idReport) { ...@@ -36,6 +36,23 @@ function formSetEditReport(idReport) {
$('#report_hour').val(report.hour); $('#report_hour').val(report.hour);
$('[name=report_format].' + report.type + ' option[value=' + report.format + ']').prop('selected', 'selected'); $('[name=report_format].' + report.type + ' option[value=' + report.format + ']').prop('selected', 'selected');
var selectorReportFormat = 'select[name=report_format].' + $('#report_type').val();
$(selectorReportFormat).change( toggleDisplayOptionsByFormat );
// When CSV is selected, hide "Display options"
toggleDisplayOptionsByFormat();
function toggleDisplayOptionsByFormat() {
var format = $(selectorReportFormat).val();
var displayOptionsSelector = $('#row_report_display_options');
if (format == 'csv') {
displayOptionsSelector.hide();
} else {
displayOptionsSelector.show();
}
}
$('[name=reportsList] input').prop('checked', false); $('[name=reportsList] input').prop('checked', false);
var key; var key;
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
{{ postEvent("Template.reportParametersScheduledReports") }} {{ postEvent("Template.reportParametersScheduledReports") }}
<tr class='email'> <tr id="row_report_display_options">
<td class="first"> <td class="first">
{# ScheduledReports_AggregateReportsFormat should be named ScheduledReports_DisplayFormat #} {# ScheduledReports_AggregateReportsFormat should be named ScheduledReports_DisplayFormat #}
{{ 'ScheduledReports_AggregateReportsFormat'|translate }} {{ 'ScheduledReports_AggregateReportsFormat'|translate }}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter