fix: 検索→ページング→検索条件変更→ダウンロード押下で、結果が変わってしまうのを修正。

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-10-10 15:24:22 +09:00
parent cd034866b8
commit d839917832

View File

@ -361,10 +361,11 @@
// ダウンロード用の非表示項目に検索値を埋め込む
const bioSearchHiddenForm = document['bioSearchHidden']
const bioDownloadHiddenForm = document['bioDownloadHidden']
for (const elem of Array.from(bioSearchHiddenForm.elements)) {
bioDownloadHiddenForm[elem.name].value = elem.value
for (const key of Object.keys(searchParams)) {
const elem = bioDownloadHiddenForm[key]
elem.value = searchParams[key]
if (elem.type === 'checkbox') {
bioDownloadHiddenForm[elem.name].checked = elem.checked
elem.checked = searchParams[key] === 'true' ? true : false
}
}
$('#result_data').html('')