mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
mvc/javascript, minor glich in getFormData() we should ignore empty id fields
This commit is contained in:
parent
5ebe27bdb6
commit
3600cf26b4
@ -52,7 +52,7 @@ function getFormData(parent) {
|
||||
|
||||
var data = {};
|
||||
$( "#"+parent+" input,#"+parent+" select,#"+parent+" textarea" ).each(function( index ) {
|
||||
if ($(this).prop('id') == undefined) {
|
||||
if ($(this).prop('id') === undefined || $(this).prop('id') === "") {
|
||||
// we need an id.
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user