From 5f4c923a09f137a7653f55af6e7e678102c40eec Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Thu, 19 Sep 2013 15:41:21 +0200 Subject: [PATCH] integrate imap client --- src/js/app.js | 2 +- src/js/controller/login.js | 2 +- src/js/controller/mail-list.js | 4 ++-- src/js/controller/navigation.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 9571b5a..6537932 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -29,7 +29,7 @@ require([ controller: NavigationCtrl }); $routeProvider.otherwise({ - redirectTo: '/desktop' + redirectTo: '/login' }); }); diff --git a/src/js/controller/login.js b/src/js/controller/login.js index 59f9346..1f8b3a1 100644 --- a/src/js/controller/login.js +++ b/src/js/controller/login.js @@ -4,7 +4,7 @@ define(function(require) { var appController = require('js/app-controller'); var LoginCtrl = function($scope, $location) { - var nextPath = '/folders/INBOX'; + var nextPath = '/desktop'; if (window.chrome && chrome.identity) { // start the main app controller diff --git a/src/js/controller/mail-list.js b/src/js/controller/mail-list.js index adec3bf..fc32b18 100644 --- a/src/js/controller/mail-list.js +++ b/src/js/controller/mail-list.js @@ -7,7 +7,7 @@ define(function(require) { emailDao; var MailListCtrl = function($scope, $routeParams) { - $scope.folder = $routeParams.folder; + $scope.folder = $routeParams.folder || 'INBOX'; $scope.messageId = $routeParams.messageId; emailDao = appController._emailDao; @@ -18,7 +18,7 @@ define(function(require) { $scope.$parent.selected = $scope.selected; }; - if (false && window.chrome && chrome.identity) { + if (window.chrome && chrome.identity) { fetchList($scope.folder, function(emails) { $scope.emails = emails; $scope.select($scope.emails[0]); diff --git a/src/js/controller/navigation.js b/src/js/controller/navigation.js index 66791f0..9eb9bbb 100644 --- a/src/js/controller/navigation.js +++ b/src/js/controller/navigation.js @@ -20,13 +20,13 @@ define(function() { chrome.app.window.create(url, { 'bounds': { 'width': 720, - 'height': 680 + 'height': 640 } }); return; } - window.open(url, 'Compose Message', 'toolbar=no,width=720,height=680,left=500,top=200,status=no,scrollbars=no,resize=no'); + window.open(url, 'Compose Message', 'toolbar=no,width=720,height=640,left=500,top=200,status=no,scrollbars=no,resize=no'); }; };