Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #19 from Perlover/feature/validate-opts
Browse files Browse the repository at this point in the history
Added support to set up a validate options for validate() in "form" type
  • Loading branch information
David Luecke committed Aug 23, 2011
2 parents 0b3f50d + ae41a15 commit 43b9c40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dform.extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,8 @@
}
};
}
if (typeof (options.validate) == 'object')
$.extend(defaults, options.validate);
this.validate(defaults);
}
},
Expand All @@ -555,7 +557,8 @@
*/
"validate" : function(options, type)
{
this.rules("add", options);
if (type != "form")
this.rules("add", options);
}
});

Expand Down

0 comments on commit 43b9c40

Please sign in to comment.