Browse Source

Always show roombar and auto hide it when in a call.

pull/156/head
Simon Eisenmann 11 years ago
parent
commit
af248efc8d
  1. 7
      static/js/directives/roombar.js

7
static/js/directives/roombar.js

@ -31,14 +31,13 @@ define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angu @@ -31,14 +31,13 @@ define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angu
};
//console.log("roomBar directive link", arguments);
$scope.layout.roombar = false;
$scope.layout.roombar = true;
$scope.save = function() {
var roomName = rooms.joinByName($scope.newRoomName);
if (roomName !== $scope.currentRoomName) {
$scope.roombarform.$setPristine();
}
$scope.layout.roombar = false;
};
$scope.hitEnter = function(evt) {
@ -68,6 +67,10 @@ define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angu @@ -68,6 +67,10 @@ define(['underscore', 'angular', 'text!partials/roombar.html'], function(_, angu
$element.find("input").focus();
});
$scope.$watch("peer", function(peer) {
$scope.layout.roombar = !peer;
});
clearRoomName();
};

Loading…
Cancel
Save