@@ -1562,7 +1562,7 @@ function handleDeleteAccountClick() {
15621562 < input type ="password " id ="delete-acc-pw " placeholder ="Your password " required />
15631563 </ div >
15641564 < div class ="modal-actions ">
1565- < button class ="btn btn-ghost btn-full " id ="modal-cancel-btn "> Cancel</ button >
1565+ < button class ="btn btn-ghost btn-full " class ="modal-cancel-btn "> Cancel</ button >
15661566 < button class ="btn btn-danger btn-full " id ="confirm-delete-acc-btn "> Delete Forever</ button >
15671567 </ div >
15681568 ` ;
@@ -1899,7 +1899,7 @@ document.addEventListener('click', function(e) {
18991899 < input type ="text " id ="rename-server-input " value ="${ serverName } " maxlength ="255 " required />
19001900 </ div >
19011901 < div class ="modal-actions ">
1902- < button class ="btn btn-ghost btn-full " id ="modal-cancel-btn "> Cancel</ button >
1902+ < button class ="btn btn-ghost btn-full " class ="modal-cancel-btn "> Cancel</ button >
19031903 < button class ="btn btn-primary btn-full " id ="confirm-rename-btn " data-server-id ="${ serverId } "> Rename</ button >
19041904 </ div >
19051905 ` ;
@@ -1929,7 +1929,7 @@ document.addEventListener('click', function(e) {
19291929 </ p >
19301930 </ div >
19311931 < div class ="modal-actions ">
1932- < button class ="btn btn-ghost btn-full " id ="modal-cancel-btn "> Cancel</ button >
1932+ < button class ="btn btn-ghost btn-full " class ="modal-cancel-btn "> Cancel</ button >
19331933 < button class ="btn btn-warning btn-full " id ="confirm-reinstall-btn " data-server-id ="${ serverId } "> Reinstall</ button >
19341934 </ div >
19351935 ` ;
@@ -1951,7 +1951,7 @@ document.addEventListener('click', function(e) {
19511951 This action is irreversible and will permanently remove the server.
19521952 </ p >
19531953 < div class ="modal-actions ">
1954- < button class ="btn btn-ghost btn-full " id ="modal-cancel-btn "> Cancel</ button >
1954+ < button class ="btn btn-ghost btn-full " class ="modal-cancel-btn "> Cancel</ button >
19551955 < button class ="btn btn-danger btn-full " id ="confirm-delete-btn " data-server-id ="${ serverId } ">
19561956 Delete Forever
19571957 </ button >
@@ -1961,7 +1961,7 @@ document.addEventListener('click', function(e) {
19611961 return ;
19621962 }
19631963
1964- if ( e . target . closest ( '# modal-cancel-btn' ) || e . target . closest ( '.modal-overlay' ) && ! e . target . closest ( '.modal' ) ) {
1964+ if ( e . target . closest ( '. modal-cancel-btn' ) || e . target . closest ( '.modal-overlay' ) && ! e . target . closest ( '.modal' ) ) {
19651965 $ ( '#modal-overlay' ) . classList . remove ( 'open' ) ;
19661966 return ;
19671967 }
0 commit comments