Ext.namespace("Ext.ux");Ext.ux.FortgotPasswordBox=Ext.extend(Ext.Window,{initComponent:function(){var a={id:"tabsinform-win",width:300,autoHeight:true,layout:"fit",modal:true,title:this.winTitle,hasImg:false,hasChanged:false,listeners:{close:this.handleClose},bbar:new Ext.StatusBar({id:"fp-statusbar",defaultText:""})};this.centerPanel=new Ext.FormPanel({id:"tabsinform-form",url:'http://www.ciridd.org/index.php/send_new_password.html',autoScroll:false,autoHeight:true,bodyStyle:"padding:5px 5px 0",trackResetOnLoad:true,defaults:{anchor:"100%",labelWidth:10},scope:this,html:'<li class="iconaide">'+this.texteZone+"</li>",items:[{xtype:"textfield",vtype:"email",enableKeyEvents:true,fieldLabel:this.labelField1,name:"email",id:"fp-email-fp",allowBlank:false,scope:this,listeners:{scope:this,keyup:function(b,d){if(d.getKey()==13){var c=Ext.getCmp("tabsinform-form").getForm();if(c.isValid()){c.submit({waitMsg:this.msgWaitSaving,waitTitle:this.titleWaitSaving,method:"POST",success:function(g,e){Ext.getCmp("fp-statusbar").setStatus({text:e.result.message,iconCls:"",clear:true})},failure:function(g,e){Ext.getCmp("fp-statusbar").setStatus({text:e.result.message,iconCls:"",clear:true})}})}}}}}]});Ext.applyIf(this,a);Ext.ux.FortgotPasswordBox.superclass.initComponent.apply(this,arguments);this.on("close",this.handleClose,this);this.on("afterrender",function(){this.syncSize()},this)},onRender:function(){Ext.ux.FortgotPasswordBox.superclass.onRender.apply(this,arguments);this.buttons[0].setText(this.btnSubmit);this.buttons[1].setText(this.btnCancel);this.add(this.centerPanel)},handleClose:function(a){},buttons:[{text:"Submit",targetId:this.targetId,parent:this,handler:function(a){var b=Ext.getCmp("tabsinform-form").getForm();if(b.isValid()){b.submit({waitMsg:a.ownerCt.msgWaitSaving,method:"POST",success:function(d,c){Ext.getCmp("fp-statusbar").setStatus({text:c.result.message,iconCls:"",clear:true});a.ownerCt.close()},failure:function(d,c){Ext.getCmp("fp-statusbar").setStatus({text:c.result.message,iconCls:"",clear:true})}})}}},{text:"Close",handler:function(a){a.ownerCt.close()}}]});Ext.reg("fortgotpasswordbox",Ext.ux.FortgotPasswordBox);
