From 77125f45ccebc1b9abc9aeef2a8576b6841c5768 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 15 Aug 2019 22:08:24 -0700 Subject: Improve import form --- ui/static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/static/js/app.js') diff --git a/ui/static/js/app.js b/ui/static/js/app.js index cae1d45..47168fc 100644 --- a/ui/static/js/app.js +++ b/ui/static/js/app.js @@ -45,7 +45,7 @@ function handleSubmitButtons() { let elements = document.querySelectorAll("form"); elements.forEach((element) => { element.onsubmit = () => { - let button = document.querySelector("button"); + let button = element.querySelector("button"); if (button) { button.innerHTML = button.dataset.labelLoading; -- cgit v1.2.3