Commit 4151b7fe by Lee Munkyeong

協業参加ユーザーリストが入場順で表示されるように修正。

parent 3ec6bfc8
...@@ -2519,13 +2519,22 @@ CHAT_UI.refreshJoinedCollaboration = function(loginIdList) { ...@@ -2519,13 +2519,22 @@ CHAT_UI.refreshJoinedCollaboration = function(loginIdList) {
}); });
var joinedUserList = CHAT_DB.getUserListByLoginId(loginIdList); var joinedUserList = CHAT_DB.getUserListByLoginId(loginIdList);
var sortedUserList = new Array();
joinedUserList.forEach(function(user) { loginIdList.forEach(function(userId) {
joinedUserList.forEach(function(user) {
if (userId == user.loginId) {
sortedUserList.push(user);
}
})
})
sortedUserList.forEach(function(user) {
user.profileUrl = CHAT.getProfileImgUrl(user.profileUrl); user.profileUrl = CHAT.getProfileImgUrl(user.profileUrl);
}) })
let html = Mustache.render(joinedUserListTemplate, { let html = Mustache.render(joinedUserListTemplate, {
joinedUserList: joinedUserList joinedUserList: sortedUserList
}); });
let obj = jQuery.parseHTML(html); let obj = jQuery.parseHTML(html);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment