summary refs log tree commit diff
path: root/webclient/app-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-22 18:18:27 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-22 18:18:27 +0200
commit41d1db2d4ab26bc87840de879e45210c9d3284a3 (patch)
tree9c9614b665e2a878862cffc5d854fd5c6c4630e6 /webclient/app-controller.js
parentMerge branch 'develop' of github.com:matrix-org/synapse into release-v0.0.1 (diff)
parentUse /home everywhere (diff)
downloadsynapse-41d1db2d4ab26bc87840de879e45210c9d3284a3.tar.xz
Merge branch 'settings-page' into develop
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r--webclient/app-controller.js24
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