diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-22 17:11:39 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-22 17:55:05 +0200 |
commit | aaf623fa534d2486eeadb79de0905c374e019098 (patch) | |
tree | 9f644caf7d799b415749477ce1170fb8910cd3e5 /webclient/app-controller.js | |
parent | Use $location.url instead of $location.path to get clean page URL without has... (diff) | |
download | synapse-aaf623fa534d2486eeadb79de0905c374e019098.tar.xz |
Move profile parts of the rooms page and the config content into a new page: settings
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r-- | webclient/app-controller.js | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/webclient/app-controller.js b/webclient/app-controller.js index 92ad01e4f9..84cb94dc74 100644 --- a/webclient/app-controller.js +++ b/webclient/app-controller.js @@ -31,31 +31,15 @@ angular.module('MatrixWebClientController', ['matrixService']) $rootScope.$on('$routeChangeSuccess', function (event, current, previous) { $scope.location = $location.path(); }); - - - // Manage the display of the current config - $scope.config; - - // Toggles the config display - $scope.showConfig = function() { - if ($scope.config) { - $scope.config = undefined; - } - else { - $scope.config = matrixService.config(); - } - }; - - $scope.closeConfig = function() { - if ($scope.config) { - $scope.config = undefined; - } - }; if (matrixService.isUserLoggedIn()) { // eventStreamService.resume(); } + $scope.go = function(url) { + $location.url(url); + }; + // Logs the user out $scope.logout = function() { // kill the event stream |