Update attach-form.js
This commit is contained in:
@@ -52,15 +52,15 @@ var formAction = function(el, event) {
|
|||||||
// jscs:enable disallowImplicitTypeConversion
|
// jscs:enable disallowImplicitTypeConversion
|
||||||
var elementType
|
var elementType
|
||||||
if (element.tagName.toLowerCase() === "input") {
|
if (element.tagName.toLowerCase() === "input") {
|
||||||
if (element.type === "text") {
|
|
||||||
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"
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
elementType = "other"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (element.tagName.toLowerCase() === "select") {
|
if (element.tagName.toLowerCase() === "select") {
|
||||||
elementType = "select"
|
elementType = "select"
|
||||||
|
|||||||
Reference in New Issue
Block a user