Skip to content

Commit 0793b02

Browse files
authored
Merge pull request #477 from ImagingDataCommons/user/mt/multi-part-manifest
fixed the bug for showing manifest max exceeded warning message
2 parents 4f98eb0 + 4c02451 commit 0793b02

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

static/js/image_search.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,11 +1747,17 @@ require([
17471747
if (is_cohort) {
17481748
if (data.file_parts_count > data.display_file_parts_count) {
17491749
$('#file-export-option').prop('title', 'Your cohort exceeds the maximum for download.');
1750-
$('#file-manifest-max-exceeded').show();
17511750
$('#file-export-option input').prop('disabled', 'disabled');
17521751
$('#file-export-option input').prop('checked', false);
1752+
17531753
$('#bq-export-option input').prop('checked', true).trigger("click");
1754+
1755+
$('#file-manifest-max-exceeded').show();
1756+
$('#file-manifest').hide();
17541757
} else {
1758+
$('#file-manifest-max-exceeded').hide();
1759+
$('#file-manifest').show();
1760+
17551761
var select_box_div = $('#file-part-select-box');
17561762
var select_box = select_box_div.find('select');
17571763
if (data.file_parts_count > 1) {

0 commit comments

Comments
 (0)