Update attach-form.js
This commit is contained in:
@@ -50,20 +50,20 @@ var formAction = function(el, event) {
|
|||||||
// jscs:disable disallowImplicitTypeConversion
|
// jscs:disable disallowImplicitTypeConversion
|
||||||
if (!!element.name && element.attributes !== undefined && element.tagName.toLowerCase() !== "button") {
|
if (!!element.name && element.attributes !== undefined && element.tagName.toLowerCase() !== "button") {
|
||||||
// jscs:enable disallowImplicitTypeConversion
|
// jscs:enable disallowImplicitTypeConversion
|
||||||
var elementType;
|
var elementType
|
||||||
if (element.tagName.toLowerCase() === "input") {
|
if (element.tagName.toLowerCase() === "input") {
|
||||||
if (element.type === "text") {
|
if (element.type === "text") {
|
||||||
elementType = "input";
|
elementType = "input"
|
||||||
}
|
}
|
||||||
if (element.type === "checkbox") {
|
if (element.type === "checkbox") {
|
||||||
elementType = "checkbox";
|
elementType = "checkbox"
|
||||||
}
|
}
|
||||||
if (element.type === "radio") {
|
if (element.type === "radio") {
|
||||||
elementType = "radio";
|
elementType = "radio"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (element.tagName.toLowerCase() === "select") {
|
if (element.tagName.toLowerCase() === "select") {
|
||||||
elementType = "select";
|
elementType = "select"
|
||||||
}
|
}
|
||||||
if ((elementType !== "checkbox" && elementType !== "radio") || element.checked) {
|
if ((elementType !== "checkbox" && elementType !== "radio") || element.checked) {
|
||||||
paramObject.push({
|
paramObject.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user