var LoginView = SerializableView.extend({ el: "#login", action: sdk.account.login, events: { "click .newuser": "new_user", "submit form": "save", }, initialize: function(){ this.$form = this.$("form") this.$msg = this.$(".msg") }, show: function(){ app.footer.show("SUBMIT", "CANCEL") this.$form.get(0).reset() this.$msg.html("* Your personal and payment information will always remain private") document.body.className = "login" }, new_user: function(){ app.router.go("account/signup") }, validate_presence: { "Email": "Please enter a valid email address.", "Password": "Please enter your password.", }, success: function(data){ }, error: function(data){ }, })