Verified Commit 72a28c54 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix: Delete typeahead

parent 2153f21a
......@@ -4,7 +4,7 @@
parameter.derogation = 0;
if ($('#derogationTr').is(':visible') && $("#derogationTr [name='sendDerogation']").is(':checked')) {
if ($("#derogationTypeahead").val().length !== 0) {
if ($("#derogationInput").val().length !== 0) {
parameter.derogation = 1;
}else {
gritter.show($('#empty_text').html(), false);
......
......@@ -124,10 +124,10 @@
if (type === 'requestCommunication' && $('#' +archiveId).data('iscommunicable') === 1) {
$('#derogationTr').show();
$('#derogationTypeaheadTr').show();
$('#derogationInputTr').show();
} else {
$('#derogationTr').hide();
$('#derogationTypeaheadTr').hide();
$('#derogationInputTr').hide();
}
$('#save').data("archiveids", "");
......
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