Bug 33590: Fix DOM id name for tabs after WRAPPER code added to export.tt

The list of CSV profiles was not displayed if the CSV format was selected in the output format settings.

To test:
1. Go to /cgi-bin/koha/tools/export.pl
2. At the bottom of the page in the Output format, select CSV format.
  *If CSV format is not active in the drop-down File format menu, create
   any profile to Usage export records on the link /cgi-bin/koha/tools/csv-profiles.pl
3. Note that the list of CSV profiles is not displayed.
4. Apply the patch.
5. Restart the page and repeat steps 2.
6. Verify that when you select the CSV format, the list of CSV profiles appears.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a104722b9d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Slava Shishkin 2023-04-28 16:36:23 +03:00 committed by Martin Renvoize
parent 1b882be3b4
commit d75e7adfee
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -336,12 +336,12 @@
$("li.csv_profiles").hide();
$("#bibs select[name='output_format']").on('change', function(){
$("#bibs_panel select[name='output_format']").on('change', function(){
var format = $(this).val();
if ( format == 'csv' ) {
$("#bibs li.csv_profiles").show();
$("#bibs_panel li.csv_profiles").show();
} else {
$("#bibs li.csv_profiles").hide();
$("#bibs_panel li.csv_profiles").hide();
}
});
$("#checkall").on("click",function(e){