mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-16 01:08:41 +00:00
Fix missing form method/action
This commit is contained in:
parent
be313453d6
commit
9270506623
|
|
@ -32,7 +32,7 @@
|
||||||
this.bind();
|
this.bind();
|
||||||
|
|
||||||
this.success = null;
|
this.success = null;
|
||||||
this.lastSubmit = 0;
|
this.lastSubmit = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -155,7 +155,7 @@
|
||||||
return this.getUniqueFormElements(
|
return this.getUniqueFormElements(
|
||||||
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(external)
|
Array.prototype.slice.call(external)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get unique form elements
|
* Get unique form elements
|
||||||
*
|
*
|
||||||
* @param {Array} arr Form element array
|
* @param {Array} arr Form element array
|
||||||
*
|
*
|
||||||
* @return {Array}
|
* @return {Array}
|
||||||
|
|
@ -313,8 +313,8 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.method = e.attributes['method'].value;
|
this.method = typeof e.attributes['method'] !== 'undefined' ? e.attributes['method'].value : 'EMPTY';
|
||||||
this.action = e.action;
|
this.action = typeof e.action !== 'undefined' ? e.action : 'EMPTY';
|
||||||
|
|
||||||
const elements = this.getFormElements(),
|
const elements = this.getFormElements(),
|
||||||
length = elements.length;
|
length = elements.length;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user