Verified Commit cd46fe2c authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix : js bug

parent 0b21dedc
......@@ -94,10 +94,13 @@
parameter.retentionRule = {
retentionStartDate: this.modal.find('[name="startDate"]').val(),
retentionRuleCode: this.modal.find('[name="retentionRuleCode"]').val(),
retentionDuration: code.duration
retentionRuleCode: this.modal.find('[name="retentionRuleCode"]').val()
};
if (code) {
parameter.retentionRule.retentionDuration = code.duration;
}
if (!($("#updateFinalDisposition").css('display') === 'block' && $('#retentionRuleFinalDisposition').prop("disabled"))) {
parameter.retentionRule.finalDisposition = $('#retentionRuleFinalDisposition').val();
}
......
......@@ -308,6 +308,7 @@
gritter.show(response.message, response.status, response.errors);
if (response.status) {
$("#retentionRuleFinalDisposition").prop("disabled",false);
$("#checkboxUpdateFinalDisposition").prop("checked",false);
ModificationModal.close();
ModificationModal.modal.one('hidden.bs.modal', function () {
//$('#modificationModal').modal();*
......
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