This is probably not the best way to do it, but it worked out for me:
$(document).on('ready page:load', function () {
function set_masks () {
$('.t0000').mask('00,00');
$('.t000000').mask('00:00,00');
$('.t000').mask('0,00');
}
function show_rec () {
$('.checkbox').click(function () {
$(this).closest('div.field').find('div.discip').toggle();
});
}
$('#sportists').on('cocoon:after-insert', function() {
set_masks();
show_rec();
});
set_masks();
show_rec();
$(".add_fields").click(function() {
set_masks();
show_rec();
});
});