settings: Fix email input whitespace issue.

This fixes the issue where the email has whitespace potentially in the
input due to the HTML formatting.
This commit is contained in:
Brock Whittaker 2017-07-05 12:49:32 -07:00 committed by Tim Abbott
parent a26703109e
commit 1b616d761e
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ exports.set_up = function () {
e.preventDefault();
e.stopPropagation();
$('#change_email_modal').modal('show');
var email = $('#email_value').text();
var email = $('#email_value').text().trim();
$('.email_change_container').find("input[name='email']").val(email);
});