Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ForgotPasswordForm() {
- this.form = $('#account_fpw_form');
- this.submitButton = $('#account_fpw_submit');
- this.submit = function() {
- return false;
- };
- this.submitOn = function() {
- this.submitButton.toggleClass('greenButton',true);
- };
- this.submitOff = function() {
- this.submitButton.toggleClass('greenButton',false);
- };
- this._initEvents = function() {
- var self = this;
- this.form.submit(function() { return self.submit(); });
- this.submitButton.bind('mousedown', function() { self.submitOn(); });
- this.submitButton.bind('mouseup', function() { self.submitOff(); });
- };
- this._initEvents();
- };
- var HM = {};
- $(document).ready(function(){
- HM.forgotPasswordForm = new ForgotPasswordForm();
- });
Add Comment
Please, Sign In to add comment