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 17:11:39 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-22 17:55:05 +0200
commitaaf623fa534d2486eeadb79de0905c374e019098 (patch)
tree9f644caf7d799b415749477ce1170fb8910cd3e5 /webclient/app-controller.js
parentUse $location.url instead of $location.path to get clean page URL without has... (diff)
downloadsynapse-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.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