diff --git a/frontends/etiquette_flask/static/js/common.js b/frontends/etiquette_flask/static/js/common.js index 6e7c7ce..5992d58 100644 --- a/frontends/etiquette_flask/static/js/common.js +++ b/frontends/etiquette_flask/static/js/common.js @@ -155,7 +155,7 @@ function init_button_with_confirm() data-cancel: Text inside the cancel button. Default is "Cancel". data-cancel-class */ - var buttons = document.getElementsByClassName("button_with_confirm"); + var buttons = Array.from(document.getElementsByClassName("button_with_confirm")); for (var index = 0; index < buttons.length; index += 1) { var button = buttons[index];