Files
grzanieplus.pl/web/plugins/stPaczkomatyPlugin/js/backend.js
2025-03-12 17:06:23 +01:00

15 lines
484 B
JavaScript

jQuery(function($) {
$(document).ready(function() {
$('#config_label_format').change(function() {
const formatSelect = $(this);
const typeSelect = $('#config_label_type');
if (formatSelect.val() != 'Pdf') {
typeSelect.val('A6').prop('disabled', true);
typeSelect.selectBox('update');
} else {
typeSelect.prop('disabled', false);
}
}).change();
});
});