Admin teams javascript removes whitespace before opening modal

selenium-screenshot-testing
Kevin Chung 2015-01-07 21:12:52 -05:00
parent a1f30547d2
commit ce4766003a
1 changed files with 6 additions and 6 deletions

View File

@ -136,12 +136,12 @@ $('#update-user').click(function(e){
$('.fa-pencil-square-o').click(function(){ $('.fa-pencil-square-o').click(function(){
var elem = $(this).parent().parent().parent(); var elem = $(this).parent().parent().parent();
var id = elem.find('.team-id').text(); var id = elem.find('.team-id').text().trim();
var name = elem.find('.team-name').text(); var name = elem.find('.team-name').text().trim();
var email = elem.find('.team-email').text(); var email = elem.find('.team-email').text().trim();
var website = elem.find('.team-website').text(); var website = elem.find('.team-website').text().trim();
var affiliation = elem.find('.team-affiliation').text(); var affiliation = elem.find('.team-affiliation').text().trim();
var country = elem.find('.team-country').text(); var country = elem.find('.team-country').text().trim();
load_modal(id, name, email, website, affiliation, country); load_modal(id, name, email, website, affiliation, country);
}) })