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:
parent
4ad8ccbc45
commit
a20f08aa7a
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user