fix modal not closing on detach
This commit is contained in:
parent
4f9e8a372c
commit
6bc6e51cd8
@ -306,7 +306,7 @@ $(document).ready(function() {
|
||||
$(td).css('cursor', 'cell');
|
||||
if (response.status === 0) {
|
||||
render_response(data, this.td, settings);
|
||||
detach('add_coin_name');
|
||||
detach('#add_coin_name');
|
||||
} else {
|
||||
alert(response.message);
|
||||
}
|
||||
@ -409,7 +409,7 @@ $(document).ready(function() {
|
||||
|
||||
if (response.status === 0) {
|
||||
render_login(name, color);
|
||||
detach('add_user');
|
||||
detach('#add_user');
|
||||
} else {
|
||||
$('#response').html(response.message);
|
||||
$('#response').css('color', 'red');
|
||||
|
Loading…
x
Reference in New Issue
Block a user