fix(#6026) : change behaviour to keep and load archiveId in html

parent e9efba3a
......@@ -194,6 +194,7 @@
let url = null;
let data = null;
let archive = null;
let archiveId = null;
archiveId = $(button).data("archive-id");
archive = this.syncSerialize("modify");
......@@ -217,6 +218,7 @@
if (response.status) {
ImportPanel.cancel();
$('#archivalProfileFields').empty();
Archive.getInfo(ArchiveInformation.archiveId);
$("#searchForm_inputSearchBtn").click();
trigger("archiveImportOver.recordsManagement");
......@@ -240,12 +242,6 @@
selectedProfile = dataJson;
}
/*if (value == '' || value == null) {
$('#requireArchiveName').removeClass("hide");
} else {
$('#requireArchiveName').addClass("hide");
}*/
if (value == '' || selectedProfile.retentionRuleCode == null || selectedProfile.retentionRuleCode == '' || selectedProfile.retentionRuleCode == undefined) {
$('#retentionRule').val('').removeAttr("disabled").change();
} else {
......
......@@ -824,7 +824,7 @@ input:invalid {
gritter.show(response.responseText, false);
}
});
$('#modifyArchive').attr("data-archive-id", archiveId);
$('#modifyArchive').data("archive-id", archiveId);
$('#modifyArchive').removeClass("hide");
$("#syncImport").addClass("hide");
Metadata.checkAndFill(Metadata.archive, $("#importPanel"));
......
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