From 6bc6e51cd81712d88e1033f146f79b013d56cb27 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Sun, 31 May 2020 23:17:48 +0200 Subject: [PATCH] fix modal not closing on detach --- coinmanager/coinc/static/coinc/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');