We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<template name="signIn"> {{#ionModal title="Welcome :-)"}} {{> atForm}} {{/ionModal}} </template>
On success, the user is logged in, but the modal does not close.
How do I close the modal? I don't see a way to send a callback to the atForm.
ionModal is from the Meteoric project.
The example uses IonModal.close() to close the modal.
IonModal.close()
'click .loginForm-signin': function(e, template) { template.error.set(false); Meteor.loginWithPassword( $('#formEmail').val(), $('#formPassword').val(), function(err) { if (err) return template.error.set(Helpers.decodeLoginError(err)); // Login was a success. Record in profile. Meteor.users.update(Meteor.userId(), { $set: { 'profile.lastPhoneAppLogin': new Date() } }); IonModal.close(); } ); },
Thanks!
Mike
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On success, the user is logged in, but the modal does not close.
How do I close the modal? I don't see a way to send a callback to the atForm.
ionModal is from the Meteoric project.
The example uses
IonModal.close()
to close the modal.Thanks!
Mike
The text was updated successfully, but these errors were encountered: