Verified Commit 79f81f50 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Change originator func to populate profiles

parent 004e9565
Pipeline #18471 failed with stages
in 22 seconds
......@@ -568,7 +568,9 @@
}
}
$("#originatorOrgRegNumber").on('change', function () {
$("#originatorOrgRegNumber").on('change', changeOriginator());
function changeOriginator() {
var archivalProfile = $('#archivalProfile');
archivalProfile.empty();
var option = $('<option/>').val("").text("").appendTo(archivalProfile);
......@@ -587,7 +589,7 @@
}
});
}
});
}
function updateSelectProfilesFromArchivalProfileReference(archivalProfileReference) {
var archivalProfile = $('#archivalProfile');
......
......@@ -959,12 +959,7 @@ input:invalid {
// console.log("je suis une sous-archive");
}
target.find("[name=originatorOrgRegNumber]").first().val(data.originatorOrgRegNumber).change();
console.log(target.find("[name=archivalProfileReference]").first());
$('#archivalProfile').find("option:selected").prop("selected",false);
$('#archivalProfile').val(data.archivalProfileReference).change();
console.log($('#archivalProfile'));
// target.find("[name=archivalProfileReference]").first().find("option[value='"+data.archivalProfileReference+"']");
// console.log(target.find("[name=archivalProfileReference]").first().find("option[value='NOTSER']"));
}
$.each(data, function(property, value) {
if (property == "description") {
......
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