We have a form object already, use that instead

This commit is contained in:
Sam Georges 2014-09-26 19:54:30 +10:00
parent b7e969083f
commit 2b63282658
1 changed files with 1 additions and 1 deletions

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') && !$el.parents('form').length) {
if ($el.is(':input') && !form.length) {
var inputName = $el.attr('name')
if (options.data[inputName] === undefined)
options.data[inputName] = $el.val()