Only when there is no <form /> parental element
This commit is contained in:
parent
a7d028a1a5
commit
b7e969083f
|
|
@ -55,7 +55,7 @@ if (window.jQuery === undefined)
|
|||
data.push($.param(paramToObj('data-request-data', $(this).data('request-data'))))
|
||||
})
|
||||
|
||||
if ($el.is(':input')) {
|
||||
if ($el.is(':input') && !$el.parents('form').length) {
|
||||
var inputName = $el.attr('name')
|
||||
if (options.data[inputName] === undefined)
|
||||
options.data[inputName] = $el.val()
|
||||
|
|
|
|||
Loading…
Reference in New Issue