From e23a38717dc1183f8619f44fadd074a00fb94ab2 Mon Sep 17 00:00:00 2001 From: "S. Paquette" Date: Thu, 22 Aug 2024 12:44:57 -0700 Subject: [PATCH] -> #1386 --- static/js/image_search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/image_search.js b/static/js/image_search.js index 905ce5096..523e1c162 100644 --- a/static/js/image_search.js +++ b/static/js/image_search.js @@ -1897,9 +1897,11 @@ require([ "warning zero-results", "Your filters returned zero results!", true - ) + ); + $('#export-manifest, #save-cohort-btn').attr('disabled', 'disabled'); } else { $('.zero-results').remove(); + $('#export-manifest, #save-cohort-btn').removeAttr('disabled'); } let file_parts_count = (is_cohort ? cohort_file_parts_count : (data.total > 0 ? data.totals.file_parts_count: 0)); let display_file_parts_count = (is_cohort ? cohort_display_file_parts_count : (data.total > 0 ? data.totals.display_file_parts_count : 0));