Do not send "undefined" data in ajax

Thanx @BOOMER74
This commit is contained in:
Samuel Georges 2016-02-13 13:33:20 +11:00
parent e367febb93
commit 17717e94ec
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ if (window.jQuery === undefined)
if ($el.is(':input') && !$form.length) {
var inputName = $el.attr('name')
if (options.data[inputName] === undefined)
if (inputName !== undefined && options.data[inputName] === undefined)
options.data[inputName] = $el.val()
}