diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-27 10:25:27 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-08-27 15:55:51 +0200 |
commit | 6691ca6f8d93837feb6e4ed0309ace031233737d (patch) | |
tree | 9ceb4dea5a32eba45ff53e5e6a600155a01dd934 /webclient/app-controller.js | |
parent | Support limit and feedback param of initialSync (diff) | |
download | synapse-6691ca6f8d93837feb6e4ed0309ace031233737d.tar.xz |
Rename go() into goToPage() which is available from everywhere thanks to the inheritance of $scope
Diffstat (limited to 'webclient/app-controller.js')
-rw-r--r-- | webclient/app-controller.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webclient/app-controller.js b/webclient/app-controller.js index f210119e21..5d3fa6ddc8 100644 --- a/webclient/app-controller.js +++ b/webclient/app-controller.js @@ -37,7 +37,11 @@ angular.module('MatrixWebClientController', ['matrixService', 'mPresence', 'even mPresence.start(); } - $scope.go = function(url) { + /** + * Open a given page. + * @param {String} url url of the page + */ + $scope.goToPage = function(url) { $location.url(url); }; |