enyo.kind({
name: 'blerg.EmailForm',
+ handlers: {
+ onLogin: "loginStatusChange"
+ },
components: [
{name: 'emailRegisterForm', components: [
- {content: "Enter your email address to get daily digest updates of your feed.", tag: 'p'},
+ {content: "Register an email address to get daily digest updates of your feed. We can also use this address to send you a password recovery link if you forget your password.", tag: 'p'},
{tag: 'form', onsubmit: 'registerEmail', components: [
{kind: 'onyx.InputDecorator', classes: 'recovery', components: [
{kind: 'onyx.Input', name: 'email'}
});
req.go();
+ },
+ loginStatusChange: function(inSender, inEvent) {
+ this.fetchEmailStatus();
}
});