@@ -70,25 +70,25 @@ exports.notifyNewUserJoined = function notifyNewUserJoined(target, msg) {
70
70
} ;
71
71
72
72
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
+ // }
92
92
}
93
93
94
94
exports . roomBoxIconActive = function roomBoxIconActive ( ) {
0 commit comments