$(dialogId).on('click', '.replacement,.allnewfiles', function() {
                    var count = $(dialogId).find('.conflict .replacement input[type="checkbox"]:checked').length;
                    if (count === $(dialogId+ ' .conflict').length) {
                        $(dialogId).find('.allnewfiles').prop('checked', true);
                        $(dialogId).find('.allnewfiles + .count').text(t('core','(all selected)'));