From 6b15a5c680f997c829cf9bc3551490ec6c3f0e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 2 Jul 2024 15:58:40 +0200 Subject: [PATCH] Make radio input of selection unique on the page --- sao/src/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sao/src/common.js b/sao/src/common.js index 7b01470a8d..41e0fadd78 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -142,6 +142,7 @@ var dialog = new Sao.Dialog( title || Sao.i18n.gettext('Your selection:'), 'selection-dialog'); + dialog.modal.uniqueId(); keys.forEach(function(k, i) { jQuery('
', { @@ -150,7 +151,7 @@ .text(' ' + k) .prepend(jQuery('', { 'type': 'radio', - 'name': 'selection', + 'name': 'selection-' + dialog.modal.attr('id'), 'value': i }))) .appendTo(dialog.body);