Browse Source

Added auto hide class to buddy list.

pull/16/head
Simon Eisenmann 11 years ago
parent
commit
d0a768c743
  1. 4
      src/styles/components/_buddylist.scss
  2. 2
      static/js/controllers/mediastreamcontroller.js

4
src/styles/components/_buddylist.scss

@ -52,10 +52,14 @@ border-bottom:1px solid $bordercolor; @@ -52,10 +52,14 @@ border-bottom:1px solid $bordercolor;
-moz-border-radius-bottomleft: 6px;
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
display:none;
}
.withBuddylist #buddylist:before {
content:"\f101";
}
.withBuddylistAutoHide #buddylist:before {
display:block;
}
.buddylist {
position:absolute;
left:25px;

2
static/js/controllers/mediastreamcontroller.js

@ -544,6 +544,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS @@ -544,6 +544,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
$timeout(function() {
if ($scope.peer) {
$scope.layout.buddylist = false;
$scope.layout.buddylistAutoHide = true;
}
}, 1000);
@ -599,6 +600,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS @@ -599,6 +600,7 @@ define(['underscore', 'bigscreen', 'moment', 'webrtc.adapter'], function(_, BigS
$scope.setStatus("waiting");
}
$scope.layout.buddylist = true;
$scope.layout.buddylistAutoHide = false;
});
mediaStream.webrtc.e.on("busy", function(event, from) {

Loading…
Cancel
Save