Unverified Commit cb494b37 authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix(#13323) : fix apparition of derogation button when multiple select

parent aa64ed9a
Pipeline #7081 failed with stages
......@@ -234,7 +234,21 @@
console.log(err);
$('#archiveModificationForm').css('display', 'none');
}
if (type === 'requestCommunication') {
var isNotCommunicable = ids.some((id) => $('#' +id).data('iscommunicable') === 1);
if (isNotCommunicable) {
$('#derogationTr').show();
$('#derogationInputTr').show();
$("#derogationTr .toggle").removeClass('btn-default off');
$("#derogationTr .toggle").addClass('btn-info');
}
else {
$('#derogationTr').hide();
$('#derogationInputTr').hide();
}
}
$('#save').data("archiveids", ids);
$('#modal_multipleSelection').css('display', '');
$('#modal_selected').html(selected);
......@@ -448,4 +462,4 @@
isModalOpen = false;
});
</script>
\ No newline at end of file
</script>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment