Commit ff503788 by Kim Peace

Fixed to select right person to hand over host permission

parent 03ed6eb8
......@@ -41,7 +41,7 @@ CollaborationUI.refreshMyGroupForAddUserInCollaboration = function () {
$("#tabMyGroupOnAddUserInCollaboration").prop("checked", true);
NativeBridgeDelegate.updateContactInfo();
CollaborationUI.updateContactInfo();
CollaborationUI.appendFavoriteGroupList();
......@@ -53,6 +53,12 @@ CollaborationUI.refreshMyGroupForAddUserInCollaboration = function () {
Common.dismissLoadingIndicator();
};
CollaborationUI.updateContactInfo = async function () {
setTimeout(function () {
NativeBridgeDelegate.updateContactInfo();
}, 0);
};
CollaborationUI.appendFavoriteGroupList = function () {
// グループの様式を読み込む
const groupTemplate = getTemplate(
......@@ -128,7 +134,9 @@ CollaborationUI.refreshAllGroupForAddUserInCollaboration = function (groupID) {
$("#tabAllGroupOnAddUserInCollaboration").prop("checked", true);
setTimeout(function () {
NativeBridgeDelegate.updateGroupInfo(groupID);
}, 0);
//画面エリアを初期化。
$("#parentGroupBtnForAddUserInCollaboration").off();
......
var CollaborationUI = {};
CollaborationUI.openedNamecardUserID = undefined;
document.addEventListener("DOMContentLoaded", function () {
CollaborationUI.disableScroll();
......@@ -146,6 +148,8 @@ CollaborationUI.makeNameCard = function (shopMemberID) {
collaborationId: globalUserInfo.shopName + "_" + nameCardInfo.loginId,
});
CollaborationUI.openedNamecardUserID = globalUserInfo.shopName + "_" + nameCardInfo.loginId;
let namecardObj = $(jQuery.parseHTML(namecardHTML)).on(
"click",
function () {}
......
......@@ -253,7 +253,8 @@ CollaborationFeature.didReceivedJoinRoomInfoResponseMessage = function () {
};
CoviewBridge.changeHostFromModal = function () {
const userID = $("#changeHostModal").data("bs.modal")._config.collaborationid;
const userID = CollaborationUI.openedNamecardUserID;
// call in agent_app.js
coview_api.HostChange(userID);
};
......
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