Remove left over artifacts from inline edit mode
This commit is contained in:
@@ -165,12 +165,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
Client.listMailingLists($scope.selectedDomain.domain, function (error, result) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
$scope.mailinglists.mailinglists = result.map(function (m) {
|
||||
m.orig = {};
|
||||
m.orig.members = m.members;
|
||||
|
||||
return m;
|
||||
});
|
||||
$scope.mailinglists.mailinglists = result;
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -317,11 +312,6 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
$scope.mailboxes.mailboxes = mailboxes.map(function (m) {
|
||||
m.aliases = aliases.filter(function (a) { return a.aliasTarget === m.name; }).map(function (a) { return a.name; }).join(',');
|
||||
m.owner = $scope.users.find(function (u) { return u.id === m.ownerId; });
|
||||
|
||||
m.orig = {};
|
||||
m.orig.owner = m.owner;
|
||||
m.orig.aliases = m.aliases;
|
||||
|
||||
return m;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user