Only when there is no <form /> parental element

This commit is contained in:
Sam Georges 2014-09-26 19:52:02 +10:00
parent a7d028a1a5
commit b7e969083f

View File

@ -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()