diff --git a/coinmanager/coinc/static/coinc/main.js b/coinmanager/coinc/static/coinc/main.js index 5426ea3..9c4ab11 100644 --- a/coinmanager/coinc/static/coinc/main.js +++ b/coinmanager/coinc/static/coinc/main.js @@ -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');