Browse Source
Merge pull request #1124 from nextcloud/fix-update-of-css-classes-during-screensharing
Fix update of CSS classes during screensharing
pull/1132/head
Joas Schilling
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
js/webrtc.js
|
|
|
@ -25,8 +25,9 @@ var spreedPeerConnectionTable = []; |
|
|
|
|
|
|
|
var $appContentElement = $('#app-content, #talk-sidebar'), |
|
|
|
participantsClass = 'participants-' + currentUsersNo, |
|
|
|
hadScreensharing = $appContentElement.hasClass('screensharing'), |
|
|
|
hadSidebar = $appContentElement.hasClass('with-app-sidebar'); |
|
|
|
if (!$appContentElement.hasClass(participantsClass) && !$appContentElement.hasClass('screensharing')) { |
|
|
|
if (!$appContentElement.hasClass(participantsClass)) { |
|
|
|
$appContentElement.attr('class', '').addClass(participantsClass); |
|
|
|
if (currentUsersNo > 1) { |
|
|
|
$appContentElement.addClass('incall'); |
|
|
|
@ -34,6 +35,10 @@ var spreedPeerConnectionTable = []; |
|
|
|
$appContentElement.removeClass('incall'); |
|
|
|
} |
|
|
|
|
|
|
|
if (hadScreensharing) { |
|
|
|
$appContentElement.addClass('screensharing'); |
|
|
|
} |
|
|
|
|
|
|
|
if (hadSidebar) { |
|
|
|
$appContentElement.addClass('with-app-sidebar'); |
|
|
|
} |
|
|
|
|