Make radio input of selection unique on the page

This commit is contained in:
Cédric Krier
2024-07-02 15:58:40 +02:00
parent 629c864ff0
commit 6b15a5c680
+2 -1
View File
@@ -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('<div/>', {
@@ -150,7 +151,7 @@
.text(' ' + k)
.prepend(jQuery('<input/>', {
'type': 'radio',
'name': 'selection',
'name': 'selection-' + dialog.modal.attr('id'),
'value': i
})))
.appendTo(dialog.body);