text: !function(){"use strict";app=app||{},app.Forgot=Backbone.Model.extend({url:"/login/forgot/",defaults:{success:!1,errors:[],errfor:{},email:""}}),app.ForgotView=Backbone.View.extend({el:"#forgot",template:_.template($("#tmpl-forgot").html()),events:{"submit form":"preventSubmit",'keypress [name="email"]':"forgotOnEnter","click .btn-forgot":"forgot"},initialize:function(){this.model=new app.Forgot,this.listenTo(this.model,"sync",this.render),this.render()},render:function(){return this.$el.html(this.template(this.model.attributes)),this.$el.find('[name="email"]').focus(),this},preventSubmit:function(a){a.preventDefault()},forgotOnEnter:function(a){13===a.keyCode&&(a.preventDefault(),this.forgot())},forgot:function(){this.$el.find(".btn-forgot").attr("disabled",!0),this.model.save({email:this.$el.find('[name="email"]').val()})}}),$(document).ready(function(){app.forgotView=new app.ForgotView})}();
  //# sourceMappingURL=index.min.js.map