From a0164205a2a82b47b9357d8e4f25c8923959da0d Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 15 Jun 2019 13:16:38 -0700 Subject: [PATCH] Remove button_with_confirm class from buttons once in progress. --- frontends/etiquette_flask/static/js/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/etiquette_flask/static/js/common.js b/frontends/etiquette_flask/static/js/common.js index b25562b..6e7c7ce 100644 --- a/frontends/etiquette_flask/static/js/common.js +++ b/frontends/etiquette_flask/static/js/common.js @@ -159,6 +159,8 @@ function init_button_with_confirm() for (var index = 0; index < buttons.length; index += 1) { var button = buttons[index]; + button.classList.remove("button_with_confirm"); + var holder = document.createElement("span"); holder.classList.add("confirm_holder"); holder.classList.add(button.dataset.holderClass || "confirm_holder");