File tree Expand file tree Collapse file tree
TEKDB/TEKDB/static/admin/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ $(function () {
8989 const resetModal = ( ) => {
9090 $ ( "#continueImport" ) . html ( "Close" ) ;
9191 $ ( "#closeModalButton" ) . prop ( "disabled" , false ) ;
92- $ ( "#continueImport" ) . click ( function ( ) {
92+ $ ( "#continueImport" ) . one ( "click" , function ( ) {
9393 $ ( "#exportImportModal" ) . modal ( "hide" ) ;
9494 } ) ;
9595 } ;
@@ -126,7 +126,7 @@ $(function () {
126126 $ ( "#modalTitle" ) . text ( "Import Database" ) ;
127127 $ ( "#modalBody" ) . html ( importText ) ;
128128 let showSpinner = true ;
129- $ ( "#continueImport" ) . click ( function ( ) {
129+ $ ( "#continueImport" ) . one ( "click" , function ( ) {
130130 // prevent closing the modal after verifying import
131131 $ ( "#exportImportModal" ) . modal ( {
132132 backdrop : "static" ,
@@ -163,7 +163,7 @@ $(function () {
163163 ) ;
164164 showSpinner = false ;
165165 $ ( "#continueImport" ) . html ( "Log out" ) ;
166- $ ( "#continueImport" ) . click ( function ( ) {
166+ $ ( "#continueImport" ) . one ( "click" , function ( ) {
167167 $ . ajax ( {
168168 url : "/logout/" ,
169169 type : "POST" ,
You can’t perform that action at this time.
0 commit comments