Commit 910c8ea6 by Kim Peace

Merge branch 'bug/#43973_archive_list_searched_list_icon' into 'develop'

Fixed searched list icon in archive list

See merge request !236
parents ac2e4a27 a5d6a825
...@@ -10,10 +10,9 @@ document.addEventListener("DOMContentLoaded", function () { ...@@ -10,10 +10,9 @@ document.addEventListener("DOMContentLoaded", function () {
ArchiveUI.refreshSearchScreen = function (keyword) { ArchiveUI.refreshSearchScreen = function (keyword) {
const archiveList = NativeBridgeDataSource.getArchiveByName(keyword); const archiveList = NativeBridgeDataSource.getArchiveByName(keyword);
const typeImage = ArchiveUI.getArchiveTypeIconURL(archive.archiveType);
ArchiveUI.getArchiveTemplate().then(function (archiveTemplate) { ArchiveUI.getArchiveTemplate().then(function (archiveTemplate) {
archiveList.forEach(function (archive) { archiveList.forEach(function (archive) {
const typeImage = ArchiveUI.getArchiveTypeIconURL(archive.archiveType);
let html = ArchiveUI.renderArchiveTemplate( let html = ArchiveUI.renderArchiveTemplate(
archiveTemplate, archiveTemplate,
archive.archiveId, archive.archiveId,
......
<li class="d-flex align-items-center"> <li class="d-flex align-items-center">
<a href="archive_detail.html?archiveId={{archiveId}}" class="w-100"> <a href="archive_detail.html?archiveId={{archiveId}}" class="w-100">
<div class="archive_item d-flex flex-row align-items-center w-100"> <div class="archive_item d-flex flex-row align-items-center w-100">
<div class="arhive_img"> <div class="arhive_img">
<div class="img_wrap bg_blue"> <div class="img_wrap bg_blue">
<img src="{{typeImage}}" alt="動画" /> <img src="{{typeImage}}" alt="動画" />
</div>
</div>
<div class="archive_desc">
<div class="archive_name">
<span>{{fileName}}</span>
</div>
<div class="archive_date">
<span>{{insertDate}}</span>
</div>
</div>
</div> </div>
</a> </div>
<div class="archive_desc">
<div class="archive_name">
<span>{{fileName}}</span>
</div>
<div class="archive_date">
<span>{{insertDate}}</span>
</div>
</div>
</div>
</a>
</li> </li>
\ No newline at end of file
<li class="d-flex align-items-center"> <li class="d-flex align-items-center">
<a href="archive_detail.html?archiveId={{archiveId}}" class="w-100"> <a href="archive_detail.html?archiveId={{archiveId}}" class="w-100">
<div class="archive_item d-flex flex-row align-items-center w-100"> <div class="archive_item d-flex flex-row align-items-center w-100">
<div class="arhive_img"> <div class="arhive_img">
<div class="img_wrap bg_blue"> <div class="img_wrap bg_blue">
<img src="{{typeImage}}" alt="動画" /> <img src="{{typeImage}}" alt="動画" />
</div>
</div>
<div class="archive_desc">
<div class="archive_name">
<span>{{fileName}}</span>
</div>
<div class="archive_date">
<span>{{insertDate}}</span>
</div>
</div>
</div> </div>
</a> </div>
<div class="archive_desc">
<div class="archive_name">
<span>{{fileName}}</span>
</div>
<div class="archive_date">
<span>{{insertDate}}</span>
</div>
</div>
</div>
</a>
</li> </li>
\ No newline at end of file
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