Commit a6846c4b by Kim Peace

Fixed shopMemberId to shopMemberID

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