Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dojo.provide("website.forms.RegistrationForm");
- dojo.require("dijit._Widget");
- dojo.require("dijit._Templated");
- dojo.require("dijit.form.Form");
- dojo.require("dijit.form.ValidationTextBox");
- dojo.require("dijit.form.FilteringSelect");
- dojo.require("dojo.data.ItemFileReadStore");
- dojo.declare("website.forms.RegistrationForm", [dijit._Widget, dijit._Templated],
- {
- isContainer: true,
- widgetsInTemplate: true,
- 'class': 'tundra',
- store: null,
- value: '',
- pageSize: 10,
- searchAttr: 'registration',
- autoComplete: false,
- 'name': 'registrationForm',
- templatePath: dojo.moduleUrl("website", "forms/templates/registrationForm.html"),
- username: null,
- password: null,
- password_retype: null,
- country: null,
- postCreate: function()
- {
- this.inherited(arguments);
- dijit.byId("username").validator = this.checkLength;
- },
- checkPassword: function(value, constraints)
- {
- return value == password.attr('value');
- },
- checkLength: function(value, constraints)
- {
- return value.length >= constraints.min && value.length <= constraints.max;
- }
- });
Add Comment
Please, Sign In to add comment