Merge pull request #2906 from emanuelschuetze/fixMotionImport
Added trim function for get_full_name/get_short_name.
This commit is contained in:
commit
70f5a95be1
@ -54,7 +54,7 @@ angular.module('OpenSlidesApp.users', [])
|
|||||||
if (title !== '') {
|
if (title !== '') {
|
||||||
name = title + ' ' + name;
|
name = title + ' ' + name;
|
||||||
}
|
}
|
||||||
return name;
|
return name.trim();
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
* Returns a long form of the name.
|
* Returns a long form of the name.
|
||||||
@ -82,7 +82,7 @@ angular.module('OpenSlidesApp.users', [])
|
|||||||
if (addition.length > 0) {
|
if (addition.length > 0) {
|
||||||
name += ' (' + addition.join(' · ') + ')';
|
name += ' (' + addition.join(' · ') + ')';
|
||||||
}
|
}
|
||||||
return name;
|
return name.trim();
|
||||||
},
|
},
|
||||||
getPerms: function() {
|
getPerms: function() {
|
||||||
var allPerms = [];
|
var allPerms = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user