
(function() {
    
    var Y = Nb.Lib;

    Nb.FeUser.Gui.PasswordLostForm = function()
    {
        Nb.FeUser.Gui.PasswordLostForm.superclass.constructor.apply(this, arguments);
        
        this.on('ajaxSubmitComplete', this._onAjaxSubmitComplete, this)
    }
    
    Nb.FeUser.Gui.PasswordLostForm.NAME = 'passwordLostForm';
    
    Nb.FeUser.Gui.PasswordLostForm.ATTRS = {
        promotion : {
            value : ''
        },
        layer : {
            value : null
        }
    }
    
    Y.extend(Nb.FeUser.Gui.PasswordLostForm, Nb.Core.Form, {
        _onAjaxSubmitComplete : function(event)
        {
            if (this.get('layer'))
            {
                this.get('layer').set('content', event.response.data.content);
            }
        }
    });
})();
