diff --git a/js/onoffice-captchacontrol.js b/js/onoffice-captchacontrol.js index 91c525065..5cfd9f292 100644 --- a/js/onoffice-captchacontrol.js +++ b/js/onoffice-captchacontrol.js @@ -32,6 +32,5 @@ jQuery(document).ready(function ($) { .appendTo("head"); } } - const formsSelector = "#onoffice-form, .oo-form"; - $(`${formsSelector} :input`).on("focus select2:open", addRecaptchaScript); + $(`#onoffice-form :input, .oo-form :input`).on("focus select2:open", addRecaptchaScript); }); \ No newline at end of file