diff --git a/browserid/static/dialog/controllers/dialog_controller.js b/browserid/static/dialog/controllers/dialog_controller.js index 043787c8937cf7ce84cb973a4ed3f4eb34690832..d9c67b6b9167a3b07a2273ddf2ea5d530652316b 100644 --- a/browserid/static/dialog/controllers/dialog_controller.js +++ b/browserid/static/dialog/controllers/dialog_controller.js @@ -85,15 +85,6 @@ $.Controller("Dialog", {}, { BrowserIDNetwork.logout(this.doAuthenticate.bind(this)); }, - /* - "#create click": function(event) { - this.doCreate(); - }, - - "#forgotpassword click": function(event) { - this.doForgotPassword(); - }, - */ "#cancel click": function(event) { this.onerror("canceled"); }, @@ -194,38 +185,6 @@ $.Controller("Dialog", {}, { doForgotPassword: function() { this.element.forgotpassword(); -/* - this.renderTemplates("forgotpassword.ejs", {}, - "bottom-continue.ejs", {}); - - $('#create_continue').addClass('disabled'); - - var self=this; - function checkInput() { - var pass = $("#password_input").val(); - var match = pass === $("#password_verify_input").val(); - self.find('.passwordnote').hide(); - $('#create_continue').addClass('disabled'); - if (!match) { - self.find('#passwords_different').show(); - } else { - if (!pass) { - self.find('#enter_a_password').show(); - } else if (pass.length < 5) { - self.find('#password_too_short').show(); - } else { - self.find('#password_ok').show(); - $('#create_continue').removeClass('disabled'); - } - } - } - - // watch input dialogs - self.find("input").unbind('keyup').bind('keyup', checkInput); - - // do a check at load time, in case the user is using the back button (enables the continue button!) - checkInput(); - */ }, doWait: function(info) {