From 9f2f488c2e967e4eab4229f0186700ba3e2376e1 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 6 Sep 2021 13:33:30 +0200 Subject: [PATCH] Add missing uid --- www/form/inner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index 87e81a3cf..f260e4465 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -459,7 +459,7 @@ define([ }); $(addMultipleButton).click(function () { multiplePickr.selectedDates.some(function (date) { - $add.before(getOption(date, false, false)); + $add.before(getOption(date, false, false, Util.uid())); var l = $container.find('input').length; $(maxInput).attr('max', l); if (l >= MAX_OPTIONS) { @@ -509,7 +509,7 @@ define([ time.setMinutes(0); time.setSeconds(0); time.setMilliseconds(0); - var el = getOption(+time, false, false); + var el = getOption(+time, false, false, Util.uid()); $add.before(el); $(el).find('input').focus(); return; @@ -529,7 +529,7 @@ define([ // "Add option" button handler $add = $(add).click(function () { var txt = v.type ? '' : Messages.form_newOption; - var el = getOption(txt, true, false); + var el = getOption(txt, true, false, Util.uid()); $add.before(el); $(el).find('input').focus(); var l = $container.find('input').length;