Commit 638beb36 authored by THEO GUILLON's avatar THEO GUILLON
Browse files

Merge branch '401-double-confirmation-pour-annuler-un-typage-d-annexe-en-aipd' into '2.0.0'

Resolve "Double confirmation pour annuler un typage d'annexe en "AIPD""

See merge request libriciel/pole-citoyens/web-DPO/web-DPO!380
parents 0f0a29e6 4e68502e
...@@ -251,8 +251,6 @@ ...@@ -251,8 +251,6 @@
.append('<td class="col-md-4 tdleft">'+ content[key].optionType +'<\/td>') .append('<td class="col-md-4 tdleft">'+ content[key].optionType +'<\/td>')
.append('<td class="col-md-2"><button type="button" class="btn btn-warning" onclick=\"deleteFile(\'' + content[key].filename + '\',\'' + key + '\')\"><i class="fa fa-times-circle"><!----><\/i> Annuler<\/button><\/td>') .append('<td class="col-md-2"><button type="button" class="btn btn-warning" onclick=\"deleteFile(\'' + content[key].filename + '\',\'' + key + '\')\"><i class="fa fa-times-circle"><!----><\/i> Annuler<\/button><\/td>')
$('#render').find('tbody').append(tr); $('#render').find('tbody').append(tr);
changeValueFieldsAIPD();
} }
} catch (e) { } catch (e) {
// alert("error"); // alert("error");
...@@ -271,7 +269,7 @@ ...@@ -271,7 +269,7 @@
}); });
function changeValueFieldsAIPD() { function changeValueFieldsAIPD() {
$('.typeAnnexeSelected').on('change', function () { $(document).on("change", ".typeAnnexeSelected",function() {
if ($(this).find('option:selected').text() === 'AIPD') { if ($(this).find('option:selected').text() === 'AIPD') {
let realisationAIPD = $('#realisation_pia').val(); let realisationAIPD = $('#realisation_pia').val();
let depotAIPD = $('#depot_pia').val(); let depotAIPD = $('#depot_pia').val();
......
Markdown is supported
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