Skip to content

Commit f47738b

Browse files
authored
YDA-6132: fix multi-select display of progress of the selected items
1 parent 0cbb639 commit f47738b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

research/static/research/js/dlgFileBrowseOperations.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ $(document).ready(function () {
7777
$('#multi-select-delete .collection').text($('.system-metadata-icon').attr('data-folder'))
7878
$('#mutli-select-progress').attr('data-action', 'delete')
7979
$('#multi-select-delete').modal('show')
80+
$('#mutli-select-progress .dlg-multi-action-button').hide()
8081
})
8182
// handling of breadcrumbs
8283
$('body').on('click', '.browse-select', function (e) {
@@ -113,7 +114,7 @@ $(document).ready(function () {
113114
$('.multi-select-table tbody').html('')
114115
$("input:checkbox[name='multiSelect[]']:checked").each(function (index) {
115116
const type = $(this).attr('data-type')
116-
const name = $(this).attr('data-name')
117+
const name = DOMPurify.sanitize($(this).attr('data-name'))
117118
let icon
118119
if (type === 'coll') {
119120
icon = '<i class="fa-regular fa-folder"></i>'
@@ -126,11 +127,12 @@ $(document).ready(function () {
126127
<td class="item-progress">-</td>
127128
</tr>
128129
`
129-
$('.multi-select-table tbody').append(DOMPurify.sanitize(row))
130+
$('.multi-select-table tbody').append(row)
130131
})
131132

132133
if (action === 'multiple-delete') {
133134
$('#multi-select-delete').modal('hide')
135+
$('.dlg-multi-action-button').hide()
134136
} else {
135137
$('#dlg-file-browse-operations').modal('hide')
136138
}

0 commit comments

Comments
 (0)