@@ -107,9 +107,10 @@ require([
107107
108108 var update_export_modal_for_cart = function ( partitions , filtergrp_list , mxstudies = 0 , mxseries = 0 ) {
109109 is_cohort = false ;
110+ let export_modal = $ ( '#export-manifest-modal' ) ;
110111 let export_form = $ ( '#export-manifest-form' ) ;
111112 var name_base = '' ;
112- $ ( '.modal-title' ) . text ( "Export Cart Manifest" ) ;
113+ export_modal . find ( '.modal-title' ) . text ( "Export Cart Manifest" ) ;
113114 export_form . append ( '<input type="hidden" name="from_cart">' )
114115 export_form . find ( 'input[name="from_cart"]' ) . val ( "True" ) ;
115116 if ( filtergrp_list !== null && filtergrp_list !== undefined && filtergrp_list . length > 0 ) {
@@ -157,7 +158,7 @@ require([
157158
158159 $ ( '.filter-tab.manifest-file' ) . show ( ) ;
159160 $ ( '.filter-tab.manifest-bq' ) . show ( ) ;
160- $ ( '.modal-title' ) . text ( 'Export Manifest' ) ;
161+ export_modal . find ( '.modal-title' ) . text ( 'Export Manifest' ) ;
161162 }
162163
163164 const update_export_modal_for_mini = function ( button ) {
@@ -235,15 +236,16 @@ require([
235236 } ) ;
236237
237238 $ ( '#export-manifest-modal' ) . on ( 'hidden.bs.modal' , function ( ) {
238- $ ( '.manifest-file' ) . show ( ) ;
239- $ ( '.manifest-bq' ) . show ( ) ;
239+ let export_modal = $ ( '#export-manifest-modal' ) ;
240+ export_modal . find ( '.manifest-file' ) . show ( ) ;
241+ export_modal . find ( '.manifest-bq' ) . show ( ) ;
240242 $ ( '#download-idc-index' ) . show ( ) ;
241- $ ( '.header-fields-container' ) . show ( ) ;
242- $ ( '.idc-index-loc-type' ) . show ( ) ;
243- $ ( '.download-manifest-text' ) . show ( ) ;
243+ export_modal . find ( '.header-fields-container' ) . show ( ) ;
244+ export_modal . find ( '.idc-index-loc-type' ) . show ( ) ;
245+ export_modal . find ( '.download-manifest-text' ) . show ( ) ;
244246 $ ( '#s5cmd-header-fields' ) . find ( 'input[value="cohort_name"]' ) . parent ( ) . show ( ) ;
245247 $ ( '#s5cmd-header-fields' ) . find ( 'input[value="user_email"]' ) . parent ( ) . show ( ) ;
246- $ ( '.modal-title' ) . text ( 'Export Manifest' ) ;
248+ export_modal . find ( '.modal-title' ) . text ( 'Export Manifest' ) ;
247249 $ ( '#manifest-source' ) . text ( 'manifest' ) ;
248250 } ) ;
249251
0 commit comments