File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ function handleModalClose () {
162162// re-initialized for setting modal as dropdownParent
163163function handleDropdownSelection ( ) {
164164 if ( $ ( '#case-selection' ) . hasClass ( 'select2' ) ) {
165- $ ( '#case-selection' ) . select2 ( ) ;
165+ $ ( '#case-selection' ) . select2 ( )
166166 }
167167}
168168
@@ -185,7 +185,7 @@ $(() => { // JQuery's callback for the DOM loading
185185 // modal id is defined in _generate_docx.html.erb so would like to be able to implement modal close logic in that file
186186 // but not sure how to
187187 $ ( '#generate-docx-report-modal' ) . on ( 'hidden.bs.modal' , ( ) => handleModalClose ( ) )
188-
188+
189189 $ ( '#generate-docx-report-modal' ) . on ( 'shown.bs.modal' , ( ) => handleDropdownSelection ( ) )
190190
191191 $ ( '#btnGenerateReport' ) . on ( 'click' , handleGenerateReport )
You can’t perform that action at this time.
0 commit comments