mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 04:12:18 -05:00
integrate imap client
This commit is contained in:
parent
4912e35762
commit
5f4c923a09
@ -29,7 +29,7 @@ require([
|
|||||||
controller: NavigationCtrl
|
controller: NavigationCtrl
|
||||||
});
|
});
|
||||||
$routeProvider.otherwise({
|
$routeProvider.otherwise({
|
||||||
redirectTo: '/desktop'
|
redirectTo: '/login'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ define(function(require) {
|
|||||||
var appController = require('js/app-controller');
|
var appController = require('js/app-controller');
|
||||||
|
|
||||||
var LoginCtrl = function($scope, $location) {
|
var LoginCtrl = function($scope, $location) {
|
||||||
var nextPath = '/folders/INBOX';
|
var nextPath = '/desktop';
|
||||||
|
|
||||||
if (window.chrome && chrome.identity) {
|
if (window.chrome && chrome.identity) {
|
||||||
// start the main app controller
|
// start the main app controller
|
||||||
|
@ -7,7 +7,7 @@ define(function(require) {
|
|||||||
emailDao;
|
emailDao;
|
||||||
|
|
||||||
var MailListCtrl = function($scope, $routeParams) {
|
var MailListCtrl = function($scope, $routeParams) {
|
||||||
$scope.folder = $routeParams.folder;
|
$scope.folder = $routeParams.folder || 'INBOX';
|
||||||
$scope.messageId = $routeParams.messageId;
|
$scope.messageId = $routeParams.messageId;
|
||||||
emailDao = appController._emailDao;
|
emailDao = appController._emailDao;
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ define(function(require) {
|
|||||||
$scope.$parent.selected = $scope.selected;
|
$scope.$parent.selected = $scope.selected;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (false && window.chrome && chrome.identity) {
|
if (window.chrome && chrome.identity) {
|
||||||
fetchList($scope.folder, function(emails) {
|
fetchList($scope.folder, function(emails) {
|
||||||
$scope.emails = emails;
|
$scope.emails = emails;
|
||||||
$scope.select($scope.emails[0]);
|
$scope.select($scope.emails[0]);
|
||||||
|
@ -20,13 +20,13 @@ define(function() {
|
|||||||
chrome.app.window.create(url, {
|
chrome.app.window.create(url, {
|
||||||
'bounds': {
|
'bounds': {
|
||||||
'width': 720,
|
'width': 720,
|
||||||
'height': 680
|
'height': 640
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
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');
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user