Skip to content

Commit d634b7b

Browse files
committed
cleanup
1 parent a2a6bf3 commit d634b7b

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

mcpgateway/static/admin.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -147,32 +147,6 @@ document.addEventListener("DOMContentLoaded", function () {
147147
}
148148
});
149149

150-
// document
151-
// .getElementById("add-gateway-form")
152-
// .addEventListener("submit", (e) => {
153-
// e.preventDefault();
154-
// const form = e.target;
155-
// const formData = new FormData(form);
156-
// fetch(`${window.ROOT_PATH}/admin/gateways`, {
157-
// method: "POST",
158-
// body: formData,
159-
// })
160-
// .then((response) => {
161-
// console.log(response);
162-
// if (!response.ok) {
163-
// const status = document.getElementById("status-gateways");
164-
// status.textContent = "Connection failed!";
165-
// status.classList.add("error-status");
166-
// } else {
167-
// location.reload();
168-
// console.log(response);
169-
// }
170-
// })
171-
// .catch((error) => {
172-
// console.error("Error:", error);
173-
// });
174-
// });
175-
176150
document
177151
.getElementById("add-gateway-form")
178152
.addEventListener("submit", (e) => {

0 commit comments

Comments
 (0)