Skip to content

Commit

Permalink
Add example with help message and validator (tel)
Browse files Browse the repository at this point in the history
  • Loading branch information
powmedia committed Oct 12, 2012
1 parent 5899119 commit 068a8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/distribution.html
Expand Up @@ -78,7 +78,7 @@ <h2 id="qunit-userAgent"></h2>
var Model = Backbone.Model.extend({
schema: {
email: { dataType: 'email', validators: ['required', 'email'] },
tel: { type: 'Text', dataType: 'tel', validators: ['required'] },
tel: { type: 'Text', dataType: 'tel', validators: ['required'], help: 'Include area code' },
number: { type: 'Number', validators: [/[0-9]+(?:\.[0-9]*)?/] },
checkbox: { type: 'Checkbox' },
radio: { type: 'Radio', options: ['Opt 1', 'Opt 2'] },
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Expand Up @@ -86,7 +86,7 @@ <h2 id="qunit-userAgent"></h2>
var Model = Backbone.Model.extend({
schema: {
email: { dataType: 'email', validators: ['required', 'email'] },
tel: { type: 'Text', dataType: 'tel', validators: ['required'] },
tel: { type: 'Text', dataType: 'tel', validators: ['required'], help: 'Include area code' },
number: { type: 'Number', validators: [/[0-9]+(?:\.[0-9]*)?/] },
checkbox: { type: 'Checkbox' },
radio: { type: 'Radio', options: ['Opt 1', 'Opt 2'] },
Expand Down

0 comments on commit 068a8ca

Please sign in to comment.