mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user