File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -147,32 +147,6 @@ document.addEventListener("DOMContentLoaded", function () {
147
147
}
148
148
} ) ;
149
149
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
-
176
150
document
177
151
. getElementById ( "add-gateway-form" )
178
152
. addEventListener ( "submit" , ( e ) => {
You can’t perform that action at this time.
0 commit comments