Skip to content
New issue

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

Fix password button on mobile #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/at_pwd_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
Template.atPwdForm.helpers(AccountsTemplates.atPwdFormHelpers);

// Simply 'inherites' events from AccountsTemplates
Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents);
Template.atPwdForm.events(AccountsTemplates.atPwdFormEvents);

// Use the polymer button to submit the form, it can't trigger submit events
pwdFormSubmit = AccountsTemplates.atPwdFormEvents["submit #at-pwd-form"]

Template.atPwdForm.events({
"click .at-btn.submit": pwdFormSubmit,
});
1 change: 0 additions & 1 deletion lib/at_pwd_form_btn.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<template name="atPwdFormBtn">
<div class="horizontal layout center-justified">
<button type="submit" id="at-btn" hidden></button>
<paper-button class="at-btn submit {{submitDisabled}}" role="button" id="at-btn-polymer" raised>
{{buttonText}}
</paper-button>
Expand Down
8 changes: 0 additions & 8 deletions lib/at_pwd_form_btn.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,2 @@
// Simply 'inherites' helpers from AccountsTemplates
Template.atPwdFormBtn.helpers(AccountsTemplates.atPwdFormBtnHelpers);


Template.atPwdFormBtn.events = {
'click #at-btn-polymer': function(event,template) {
event.preventDefault();
template.find('button[type=submit]').click();
}
};