From 3c56fe9b2275c860976ccef1a58168b5ebd03c32 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Mon, 24 Apr 2023 22:35:35 +1000 Subject: [PATCH] Fix bypass not auto closing and submitting on non english locale. --- gulp/res/js/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/res/js/forms.js b/gulp/res/js/forms.js index c4d2112d..1007a9e1 100644 --- a/gulp/res/js/forms.js +++ b/gulp/res/js/forms.js @@ -66,7 +66,7 @@ function doModal(data, postcallback, loadcallback) { } if (postcallback) { checkInterval = setInterval(() => { - if (modalframe && modalframe.contentDocument.title == 'Success') { + if (modalframe && modalframe.contentDocument.title == __('Success')) { clearInterval(checkInterval); removeModal(); postcallback();