From 839f5ced3febe60339bcbc6dfd681e475dcecd14 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 11 Jun 2020 09:38:48 +0200 Subject: [PATCH] implement data-id element for editing same elements with different ids --- UI/Component/Form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 3783c14..8403af0 100644 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -770,6 +770,10 @@ export class Form ? document.querySelector(formElement.getAttribute('data-update-content')) : formElement.querySelector(formElement.getAttribute('data-update-content')); + if (formElement.getAttribute('data-id') !== null) { + UriFactory.setQuery('$id', formElement.getAttribute('data-id')); + } + let values = []; let text = []; const newEle = [];