mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-13 16:08:41 +00:00
pass button value in forms
This commit is contained in:
parent
c15a1573a2
commit
727fee799a
|
|
@ -153,6 +153,7 @@
|
||||||
const selects = form.getElementsByTagName('select'),
|
const selects = form.getElementsByTagName('select'),
|
||||||
textareas = form.getElementsByTagName('textarea'),
|
textareas = form.getElementsByTagName('textarea'),
|
||||||
inputs = [].slice.call(form.getElementsByTagName('input')),
|
inputs = [].slice.call(form.getElementsByTagName('input')),
|
||||||
|
buttons = form.getElementsByTagName('button'),
|
||||||
canvas = form.getElementsByTagName('canvas'),
|
canvas = form.getElementsByTagName('canvas'),
|
||||||
external = document.querySelectorAll('[form=' + this.id + ']'),
|
external = document.querySelectorAll('[form=' + this.id + ']'),
|
||||||
inputLength = inputs.length;
|
inputLength = inputs.length;
|
||||||
|
|
@ -169,6 +170,7 @@
|
||||||
Array.prototype.slice.call(inputs).concat(
|
Array.prototype.slice.call(inputs).concat(
|
||||||
Array.prototype.slice.call(selects),
|
Array.prototype.slice.call(selects),
|
||||||
Array.prototype.slice.call(textareas),
|
Array.prototype.slice.call(textareas),
|
||||||
|
Array.prototype.slice.call(buttons),
|
||||||
Array.prototype.slice.call(external)
|
Array.prototype.slice.call(external)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user