mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 22:32:45 +00:00
fix(mail(js)): don't allow to rename special mailboxes
This commit is contained in:
@@ -111,19 +111,21 @@
|
||||
this.editFolder = function($event) {
|
||||
$event.stopPropagation();
|
||||
$event.preventDefault();
|
||||
this.editMode = true;
|
||||
this.inputElement.value = this.mailbox.name;
|
||||
this.clickableElement.classList.add('ng-hide');
|
||||
this.inputContainer.classList.remove('ng-hide');
|
||||
if ($event.srcEvent && $event.srcEvent.type == 'touchend') {
|
||||
$timeout(function() {
|
||||
$ctrl.inputElement.select();
|
||||
$ctrl.inputElement.focus();
|
||||
}, 200); // delayed focus for iOS
|
||||
}
|
||||
else {
|
||||
this.inputElement.select();
|
||||
this.inputElement.focus();
|
||||
if (this.mailbox.$isEditable) {
|
||||
this.editMode = true;
|
||||
this.inputElement.value = this.mailbox.name;
|
||||
this.clickableElement.classList.add('ng-hide');
|
||||
this.inputContainer.classList.remove('ng-hide');
|
||||
if ($event.srcEvent && $event.srcEvent.type == 'touchend') {
|
||||
$timeout(function() {
|
||||
$ctrl.inputElement.select();
|
||||
$ctrl.inputElement.focus();
|
||||
}, 200); // delayed focus for iOS
|
||||
}
|
||||
else {
|
||||
this.inputElement.select();
|
||||
this.inputElement.focus();
|
||||
}
|
||||
}
|
||||
if (this.panel) {
|
||||
this.panel.close();
|
||||
|
||||
Reference in New Issue
Block a user