1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-12 04:05:13 -05:00

change name of to emptyOutbox

This commit is contained in:
Tankred Hase 2013-10-24 19:37:07 +02:00
parent 4ad8ccbc45
commit a20f08aa7a
2 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ define(function(require) {
} }
}; };
$scope.sendFirstFromOutbox = function() { $scope.emptyOutbox = function() {
var dbType = 'email_OUTBOX', var dbType = 'email_OUTBOX',
outbox = _.findWhere($scope.folders, { outbox = _.findWhere($scope.folders, {
type: 'Outbox' type: 'Outbox'
@ -227,7 +227,7 @@ define(function(require) {
function startOutboxSender() { function startOutboxSender() {
// start periodic checking of outbox // start periodic checking of outbox
senderIntervalId = setInterval($scope.sendFirstFromOutbox, config.checkOutboxInterval); senderIntervalId = setInterval($scope.emptyOutbox, config.checkOutboxInterval);
} }
}; };

View File

@ -117,7 +117,7 @@ define(function(require) {
var ps = $scope.$parent.$parent; var ps = $scope.$parent.$parent;
ps.closeWriter(); ps.closeWriter();
ps.$apply(); ps.$apply();
ps.sendFirstFromOutbox(); ps.emptyOutbox();
}); });
}; };
}; };