Lines 843-849
Link Here
|
843 |
[% END # /IF ( warn_authval_problem )%] |
843 |
[% END # /IF ( warn_authval_problem )%] |
844 |
|
844 |
|
845 |
[% IF ( enter_params ) %] |
845 |
[% IF ( enter_params ) %] |
846 |
<form action='/cgi-bin/koha/reports/guided_reports.pl'> |
846 |
<form action='/cgi-bin/koha/reports/guided_reports.pl' id='report_param_form'> |
847 |
<input type='hidden' name='reports' value="[% reports | html %]" /> |
847 |
<input type='hidden' name='reports' value="[% reports | html %]" /> |
848 |
[% IF ( auth_val_error ) %] |
848 |
[% IF ( auth_val_error ) %] |
849 |
<input type='hidden' name='phase' value='Edit SQL' /> |
849 |
<input type='hidden' name='phase' value='Edit SQL' /> |
Lines 884-893
Link Here
|
884 |
[% ELSE %] |
884 |
[% ELSE %] |
885 |
<li> |
885 |
<li> |
886 |
<label for="sql_params_[% sql_param.labelid | html %]">[% sql_param.entry | html %]:</label> |
886 |
<label for="sql_params_[% sql_param.labelid | html %]">[% sql_param.entry | html %]:</label> |
887 |
<select name="[%- sql_param.input.name | html -%]" tabindex="1" id="[%- sql_param.input.id | html -%]"> |
887 |
<select name="[%- sql_param.input.name | html -%]" tabindex="1" id="[%- sql_param.input.id | html -%]" [%- sql_param.select_multiple | html -%]> |
888 |
[% IF (sql_param.include_all) %] |
888 |
[% IF (sql_param.include_all) %] |
889 |
<option value="%">All</option> |
889 |
<option value="%">All</option> |
890 |
[% END %] |
890 |
[% END %] |
|
|
891 |
[% IF (sql_param.select_multiple) %] |
892 |
<option value="null" hidden></option> |
893 |
[% END %] |
891 |
[% FOREACH value IN sql_param.input.values %] |
894 |
[% FOREACH value IN sql_param.input.values %] |
892 |
<option value="[%- value | html -%]">[%- sql_param.input.labels.$value | html -%]</option> |
895 |
<option value="[%- value | html -%]">[%- sql_param.input.labels.$value | html -%]</option> |
893 |
[% END %] |
896 |
[% END %] |
Lines 1536-1541
Link Here
|
1536 |
|
1539 |
|
1537 |
<script> |
1540 |
<script> |
1538 |
|
1541 |
|
|
|
1542 |
// if the report param form has multiselects override default form submission |
1543 |
if( $('#report_param_form').find('select[multiple]').length ) { |
1544 |
$('#report_param_form').find('select[multiple]').each( function (i) { |
1545 |
$(this).on('change', function() { |
1546 |
var $selected = $(this).val().join('\n'); |
1547 |
$(this).find('option:first').val($selected); |
1548 |
}); |
1549 |
}); |
1550 |
|
1551 |
$('#report_param_form').on('submit', function(e) { |
1552 |
$('#report_param_form').find('select[multiple]').each( function (i) { |
1553 |
var $selected = $('option:first', this).val(); |
1554 |
$(this).val($selected); |
1555 |
}); |
1556 |
}); |
1557 |
} |
1558 |
|
1539 |
function hide_bar_element() { |
1559 |
function hide_bar_element() { |
1540 |
$('#chart-column-horizontal').hide() |
1560 |
$('#chart-column-horizontal').hide() |
1541 |
$('.chart-column-group').each(function( index ) { |
1561 |
$('.chart-column-group').each(function( index ) { |