Skip to content

Commit 777a954

Browse files
committed
comment disable and toggle state
1 parent 337e707 commit 777a954

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

static/js/clientShare.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,25 @@ exports.notifyNewUserJoined = function notifyNewUserJoined(target, msg) {
7070
};
7171

7272
exports.toggleRoomBtnHandler = function toggleRoomBtnHandler($joinLeaveBtn, action) {
73-
var join = $joinLeaveBtn.attr("data-join");
74-
var headerId = $joinLeaveBtn.attr("data-id");
75-
var $btnText = exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='text']")
76-
var $btnVideo = exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='video']")
77-
78-
$joinLeaveBtn.attr({"data-action": action});
79-
80-
if(join === "chatRoom"){
81-
$btnVideo.prop('disabled', false)
82-
$btnText.prop('disabled', false)
83-
$btnText.attr({"data-action": action});
84-
$btnVideo.attr({"data-action": action});
85-
} else {
86-
if($btnText.attr("data-action") === "LEAVE" || $btnVideo.attr("data-action") === "LEAVE") {
87-
exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='chatRoom']").attr({"data-action": "LEAVE"});
88-
}else {
89-
exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='chatRoom']").attr({"data-action": "JOIN"});
90-
}
91-
}
73+
// var join = $joinLeaveBtn.attr("data-join");
74+
// var headerId = $joinLeaveBtn.attr("data-id");
75+
// var $btnText = exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='text']")
76+
// var $btnVideo = exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='video']")
77+
78+
// $joinLeaveBtn.attr({"data-action": action});
79+
80+
// if(join === "chatRoom"){
81+
// $btnVideo.prop('disabled', false)
82+
// $btnText.prop('disabled', false)
83+
// $btnText.attr({"data-action": action});
84+
// $btnVideo.attr({"data-action": action});
85+
// } else {
86+
// if($btnText.attr("data-action") === "LEAVE" || $btnVideo.attr("data-action") === "LEAVE") {
87+
// exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='chatRoom']").attr({"data-action": "LEAVE"});
88+
// }else {
89+
// exports.$body_ace_outer().find(".wbrtc_roomBox." + headerId + " [data-join='chatRoom']").attr({"data-action": "JOIN"});
90+
// }
91+
// }
9292
}
9393

9494
exports.roomBoxIconActive = function roomBoxIconActive() {

static/js/webrtcRoom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var WRTC_Room = (function () {
7979
switch (target) {
8080
case 'chatRoom':
8181
$joinBtn.targetPlus = true;
82-
share.$body_ace_outer().find(".btn_joinChat_chatRoom[data-id='" + headerId + "'] , .btn_joinChat_video[data-id='" + headerId + "'], .btn_joinChat_text[data-id='" + headerId + "']").prop('disabled', true);
82+
// share.$body_ace_outer().find(".btn_joinChat_chatRoom[data-id='" + headerId + "'] , .btn_joinChat_video[data-id='" + headerId + "'], .btn_joinChat_text[data-id='" + headerId + "']").prop('disabled', true);
8383
joinChatRoom(headerId, userInfo, $joinBtn);
8484
break;
8585
case 'video':

0 commit comments

Comments
 (0)