Commit a6846c4b by Kim Peace

Fixed shopMemberId to shopMemberID

parent 37bc4f94
...@@ -200,7 +200,7 @@ ChatRoom.renderDateLabelMessage = function (template, beforeDate) { ...@@ -200,7 +200,7 @@ ChatRoom.renderDateLabelMessage = function (template, beforeDate) {
}; };
ChatRoom.getChatMessageTemplate = function (messageType, senderID) { ChatRoom.getChatMessageTemplate = function (messageType, senderID) {
if (senderID == currentUserInfo.shopMemberId) { if (senderID == currentUserInfo.shopMemberID) {
return myMessageTemplate; return myMessageTemplate;
} else if (messageType == MessageType.SYSTEM) { } else if (messageType == MessageType.SYSTEM) {
return systemMessageTemplate; return systemMessageTemplate;
......
...@@ -109,14 +109,14 @@ CollaborationUI.scrollControl = function (event) { ...@@ -109,14 +109,14 @@ CollaborationUI.scrollControl = function (event) {
/********************************* /*********************************
* NameCard in Collaboration * NameCard in Collaboration
********************************/ ********************************/
CollaborationUI.makeNameCard = function (shopMemberId) { CollaborationUI.makeNameCard = function (shopMemberID) {
if (currentUserInfo.shopMemberID == shopMemberId) { if (currentUserInfo.shopMemberID == shopMemberID) {
return; return;
} }
const namecardTemplate = getTemplate(TemplateURL.COLLABORATION_PROFILE); const namecardTemplate = getTemplate(TemplateURL.COLLABORATION_PROFILE);
const nameCardInfo = NativeBridgeDataSource.getNameCardData(shopMemberId); const nameCardInfo = NativeBridgeDataSource.getNameCardData(shopMemberID);
nameCardInfo.profileUrl = Common.getProfileImgUrl(nameCardInfo.profileUrl); nameCardInfo.profileUrl = Common.getProfileImgUrl(nameCardInfo.profileUrl);
let isCollaborationHost = coview_api.getRoomUsers(); let isCollaborationHost = coview_api.getRoomUsers();
...@@ -145,16 +145,16 @@ CollaborationUI.makeNameCard = function (shopMemberId) { ...@@ -145,16 +145,16 @@ CollaborationUI.makeNameCard = function (shopMemberId) {
$("#userNameCardInCollaboration").modal("show"); $("#userNameCardInCollaboration").modal("show");
}; };
CollaborationUI.removeFavoriteUserInCollaboration = function (shopMemberId) { CollaborationUI.removeFavoriteUserInCollaboration = function (shopMemberID) {
Common.showLoadingIndicator(); Common.showLoadingIndicator();
$("#userNameCardInCollaboration").modal("hide"); $("#userNameCardInCollaboration").modal("hide");
NativeBridgeDataSource.removeFavoriteUser(shopMemberId); NativeBridgeDataSource.removeFavoriteUser(shopMemberID);
Common.dismissLoadingIndicator(); Common.dismissLoadingIndicator();
}; };
CollaborationUI.insertFavoriteUserInCollaboration = function (shopMemberId) { CollaborationUI.insertFavoriteUserInCollaboration = function (shopMemberID) {
$("#userNameCardInCollaboration").modal("hide"); $("#userNameCardInCollaboration").modal("hide");
NativeBridgeDataSource.addFavoriteUser(shopMemberId); NativeBridgeDataSource.addFavoriteUser(shopMemberID);
Common.dismissLoadingIndicator(); Common.dismissLoadingIndicator();
}; };
......
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