Commit 9b00fd4c by Kim Peace

Fixed to hand over data parameter for update host

parent 22eccd64
...@@ -50,6 +50,16 @@ CollaborationUI.bindDisplayUsersButton = function () { ...@@ -50,6 +50,16 @@ CollaborationUI.bindDisplayUsersButton = function () {
}); });
}; };
CollaborationUI.userListSlideOut = function () {
const w = $(".user_btn").width();
$(".user_btn").removeClass("hide");
$("#overlay_user_list.overlay")
.removeClass("slidein")
.css({ transform: "translateX(" & -w & ")" });
scrollTo(0, 0);
CollaborationUI.bindDisableScroll();
};
CollaborationUI.bindChangeHostButton = function () { CollaborationUI.bindChangeHostButton = function () {
$(".ch_host_btn").click(function () { $(".ch_host_btn").click(function () {
const target = $(this).val(); const target = $(this).val();
......
...@@ -42,7 +42,7 @@ FermiWebSocketMessageHandler.handleMessagesToSelf = function (data) { ...@@ -42,7 +42,7 @@ FermiWebSocketMessageHandler.handleMessagesToSelf = function (data) {
// 自分自身の場合 // 自分自身の場合
switch (data.type) { switch (data.type) {
case "HOST_CHANGE_REQUEST": case "HOST_CHANGE_REQUEST":
FermiWebSocketMessageHandler.hostChangeRequest(); FermiWebSocketMessageHandler.hostChangeRequest(data);
break; break;
case "PIP_END_REQUEST": case "PIP_END_REQUEST":
if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) { if (globalUserInfo.collaborationType == COLLABORATION_TYPE.DOCUMENT) {
...@@ -168,8 +168,8 @@ FermiWebSocketMessageHandler.captureRequest = function (data) { ...@@ -168,8 +168,8 @@ FermiWebSocketMessageHandler.captureRequest = function (data) {
}; };
// HOST_CHANGE_REQUEST // HOST_CHANGE_REQUEST
FermiWebSocketMessageHandler.hostChangeRequest = function () { FermiWebSocketMessageHandler.hostChangeRequest = function (data) {
FermiWebSocketBridge.requestHostChange(); FermiWebSocketBridge.hostChangeResponse(data);
}; };
// HOST_CHANGE_RESPONSE // HOST_CHANGE_RESPONSE
......
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