first commit
This commit is contained in:
15
web/plugins/stPaczkomatyPlugin/js/backend.js
Normal file
15
web/plugins/stPaczkomatyPlugin/js/backend.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user