Skip to content
Merged
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
8 changes: 7 additions & 1 deletion kitsune/sumo/static/js/browserid.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,15 @@
next = $this.data('next') || document.location.pathname + document.location.search;
$form.find('input[name="next"]').val(next);

var originalText = $this.text();
$this.text(gettext('Signing you in...'));

navigator.id.request({
returnTo: next,
siteName: gettext('Mozilla Support')/*,
siteName: gettext('Mozilla Support'),
onCancel: function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK! Why would they do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed 6723c49, which changes the case of that param.

This is actually even better now, because when the user closes the Persona window, it calls oncancel, which is kind of what I expected.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

$this.text(originalText);
}/*,
TODO: siteLogo: */
});
});
Expand Down