OpenXE/classes/Modules/DocumentBatch/www/js/documentbatch.js
2021-05-21 08:49:41 +02:00

22 lines
584 B
JavaScript

var DocumentBatch = function ($) {
"use strict";
var me = {
init: function () {
$('#checkall').on('change',function(){
$('#documentbatches_orders').find('input.select').prop('checked', $(this).prop('checked'));
});
$('#checkallinwork').on('change',function(){
$('#documentbatches_inwork').find('input.select').prop('checked', $(this).prop('checked'));
});
}
};
return {
init: me.init
}
}(jQuery);
$(document).ready(function () {
DocumentBatch.init();
});