1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 10:22:18 -05:00

integrate imap client

This commit is contained in:
Tankred Hase 2013-09-19 15:41:21 +02:00
parent 4912e35762
commit 5f4c923a09
4 changed files with 6 additions and 6 deletions

View File

@ -29,7 +29,7 @@ require([
controller: NavigationCtrl
});
$routeProvider.otherwise({
redirectTo: '/desktop'
redirectTo: '/login'
});
});

View File

@ -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

View File

@ -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]);

View File

@ -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');
};
};