mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-17 17:58:39 +00:00
the trigger element has no special meaning for the backend, only the data submitted!
This commit is contained in:
parent
31dc73929f
commit
6e2abf7507
|
|
@ -305,11 +305,6 @@ export class FormView {
|
||||||
inputLength = inputs.length,
|
inputLength = inputs.length,
|
||||||
externalLength = external.length;
|
externalLength = external.length;
|
||||||
|
|
||||||
// todo: handle trigger element. check which element triggered the submit and pass it's name+value
|
|
||||||
// the reason for this is, there may be multiple buttons in a form which trigger a send
|
|
||||||
// sometimes even a checkbox or drop down could trigger a send
|
|
||||||
// Maybe it makes sense to do this however at a different place e.g. the actual data submit
|
|
||||||
|
|
||||||
for (let i = 0; i < inputLength; ++i) {
|
for (let i = 0; i < inputLength; ++i) {
|
||||||
if ((inputs[i].type === 'checkbox' || inputs[i].type === 'radio') && !inputs[i].checked) {
|
if ((inputs[i].type === 'checkbox' || inputs[i].type === 'radio') && !inputs[i].checked) {
|
||||||
delete inputs[i];
|
delete inputs[i];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user