From 0197f3c7d851a1c74dccfb8f3c2eb308c0182817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=84=EC=84=B1=ED=95=84?= Date: Mon, 15 May 2023 17:45:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=94=EC=B2=AD=20=EC=82=AD=EC=A0=9C=20-=20?= =?UTF-8?q?=ED=8C=9D=EC=97=85=20=EC=95=8C=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/page/apiCollection.html | 17 +++ .../resources/templates/page/apiTester.html | 127 ++++++++++-------- 2 files changed, 85 insertions(+), 59 deletions(-) diff --git a/src/main/resources/templates/page/apiCollection.html b/src/main/resources/templates/page/apiCollection.html index 7a266c5..16c0b70 100644 --- a/src/main/resources/templates/page/apiCollection.html +++ b/src/main/resources/templates/page/apiCollection.html @@ -57,6 +57,23 @@ + diff --git a/src/main/resources/templates/page/apiTester.html b/src/main/resources/templates/page/apiTester.html index d290c8e..a33b377 100644 --- a/src/main/resources/templates/page/apiTester.html +++ b/src/main/resources/templates/page/apiTester.html @@ -249,7 +249,11 @@ @@ -295,6 +299,10 @@ controller.removeCollection($(this).data('id')); }); + $('#confirm_delete_api_modal').find('button.confirm_delete_api').on('click', function () { + controller.deleteApiRequest($(this).data('collection'), $(this).data('id')); + }); + controller.loadCollections(); }, renderParam: function (tabIdx) { @@ -368,7 +376,7 @@ $span.on('click', function (event) { event.stopPropagation(); - controller.removeAPIRequest(idx); + controller.closeTab(idx); }); let tabButton = $('