@@ -180,7 +180,8 @@ function addAnnotation(threadid) {
180180 $ ( "#annotateThreadList" ) . find ( "option" ) . remove ( ) ;
181181 $ ( "#annotateMessage" ) . val ( "" ) ;
182182 $ ( "#annotateMsgId" ) . val ( "" ) ;
183- $ ( "#annotateModal" ) . modal ( ) ;
183+ const modal = new bootstrap . Modal ( document . getElementById ( 'annotateModal' ) ) ;
184+ modal . show ( ) ;
184185 $ ( "#annotateThreadList" ) . focus ( ) ;
185186 updateAnnotationMessages ( threadid ) ;
186187 $ ( "#doAnnotateMessageButton" ) . unbind ( "click" ) ;
@@ -204,7 +205,7 @@ function addAnnotation(threadid) {
204205 alert ( data ) ;
205206 $ ( "#annotateMessageBody" ) . removeClass ( "loading" ) ;
206207 } else {
207- $ ( "#annotateModal" ) . modal ( " hide" ) ;
208+ modal . hide ( ) ;
208209 location . reload ( ) ;
209210 }
210211 } )
@@ -247,7 +248,8 @@ function deleteAnnotation(annid) {
247248}
248249
249250function flagCommitted ( committer ) {
250- $ ( "#commitModal" ) . modal ( ) ;
251+ const modal = new bootstrap . Modal ( document . getElementById ( 'commitModal' ) ) ;
252+ modal . show ( ) ;
251253 $ ( "#committerSelect" ) [ 0 ] . selectize . setValue ( committer ) ;
252254 $ ( "#doCommitButton" ) . unbind ( "click" ) ;
253255 $ ( "#doCommitButton" ) . click ( ( ) => {
@@ -305,6 +307,7 @@ function togglePatchFilterButton(buttonId, collapseId) {
305307 * Upstream user search dialog
306308 */
307309function search_and_store_user ( ) {
310+ const modal = new bootstrap . Modal ( document . getElementById ( 'searchUserModal' ) ) ;
308311 $ ( "#doSelectUserButton" ) . unbind ( "click" ) ;
309312 $ ( "#doSelectUserButton" ) . click ( ( ) => {
310313 if ( ! $ ( "#searchUserList" ) . val ( ) ) {
@@ -318,7 +321,7 @@ function search_and_store_user() {
318321 . success ( ( data ) => {
319322 if ( data === "OK" ) {
320323 alert ( "User imported!" ) ;
321- $ ( "#searchUserModal" ) . modal ( " hide" ) ;
324+ modal . hide ( ) ;
322325 } else {
323326 alert ( `Failed to import user: ${ data } ` ) ;
324327 }
@@ -330,7 +333,7 @@ function search_and_store_user() {
330333 return false ;
331334 } ) ;
332335
333- $ ( "#searchUserModal" ) . modal ( ) ;
336+ modal . show ( ) ;
334337}
335338
336339function findUsers ( ) {
0 commit comments