mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-07 04:25:26 +00:00
Allow reverting edition of addressbook name w/ESC
This commit is contained in:
@@ -138,9 +138,14 @@
|
||||
i = _.indexOf(_.pluck($scope.addressbooks, 'id'), $rootScope.addressbook.id);
|
||||
}
|
||||
$scope.editMode = $rootScope.addressbook.id;
|
||||
$scope.originalAddressbook = angular.extend({}, $scope.addressbook.$omit());
|
||||
focus('addressBookName_' + i);
|
||||
}
|
||||
};
|
||||
$scope.revertEditing = function(i) {
|
||||
$scope.addressbooks[i].name = $scope.originalAddressbook.name;
|
||||
$scope.editMode = false;
|
||||
};
|
||||
$scope.save = function(i) {
|
||||
var name = $scope.addressbooks[i].name;
|
||||
if (name && name.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user