fix modal not closing on detach

This commit is contained in:
koksnuss 2020-05-31 23:17:48 +02:00
parent 4f9e8a372c
commit 6bc6e51cd8

View File

@ -306,7 +306,7 @@ $(document).ready(function() {
$(td).css('cursor', 'cell'); $(td).css('cursor', 'cell');
if (response.status === 0) { if (response.status === 0) {
render_response(data, this.td, settings); render_response(data, this.td, settings);
detach('add_coin_name'); detach('#add_coin_name');
} else { } else {
alert(response.message); alert(response.message);
} }
@ -409,7 +409,7 @@ $(document).ready(function() {
if (response.status === 0) { if (response.status === 0) {
render_login(name, color); render_login(name, color);
detach('add_user'); detach('#add_user');
} else { } else {
$('#response').html(response.message); $('#response').html(response.message);
$('#response').css('color', 'red'); $('#response').css('color', 'red');