From 11fda3d9370a7006cbffef342062edb6f80671ca Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Tue, 18 Mar 2014 19:08:09 +0100 Subject: [PATCH] Hide buddy list per default and only show when room status becomes true. --- static/js/directives/buddylist.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/directives/buddylist.js b/static/js/directives/buddylist.js index 9d017e05..be86856d 100644 --- a/static/js/directives/buddylist.js +++ b/static/js/directives/buddylist.js @@ -27,7 +27,7 @@ define(['underscore', 'text!partials/buddylist.html'], function(_, template) { var controller = ['$scope', '$element', '$attrs', function($scope, $element, $attrs) { - $scope.layout.buddylist = true; + $scope.layout.buddylist = false; $scope.enabled = false; $scope.doCall = function(id) { @@ -55,6 +55,9 @@ define(['underscore', 'text!partials/buddylist.html'], function(_, template) { $scope.enabled = status; $scope.$emit("roomStatus", status); } + if (status) { + $scope.layout.buddylist = true + } }; //XXX(longsleep): Debug leftover ?? Remove this.