diff --git a/src/js/controller/app/navigation.js b/src/js/controller/app/navigation.js index f66a02f..0c75e97 100644 --- a/src/js/controller/app/navigation.js +++ b/src/js/controller/app/navigation.js @@ -35,6 +35,14 @@ var NavigationCtrl = function($scope, $location, account, email, outbox, notific // url/history handling // + /** + * Close read mode and go to folder + */ + $scope.navigate = function(folderIndex) { + $location.search('uid', null); + $location.search('folder', folderIndex); + }; + $scope.loc = $location; // nav open/close state url watcher diff --git a/src/tpl/nav.html b/src/tpl/nav.html index f10e5ba..0f17e1e 100644 --- a/src/tpl/nav.html +++ b/src/tpl/nav.html @@ -7,7 +7,7 @@