1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-23 15:58:49 -05:00

[WO-72] fix focus directive when opening writer mode to focus on the correct input

This commit is contained in:
Tankred Hase 2013-11-07 20:00:36 +01:00
parent 6e144a23e1
commit 7cbc185d93
2 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ define(function(require) {
if (value === true) { if (value === true) {
$timeout(function() { $timeout(function() {
element[0].focus(); element[0].focus();
}); }, 100);
} }
}); });
} }

View File

@ -9,7 +9,7 @@
<div class="headers"> <div class="headers">
<p> <p>
<span>To:</span> <span>To:</span>
<input type="email" ng-model="to" ng-change="verifyTo()" ng-class="{'label': toSecure === true, 'label label-primary': toSecure === false}" tabindex="1" focus-me="writerOpen" auto-size="to" spellcheck="false"> <input type="email" ng-model="to" ng-change="verifyTo()" ng-class="{'label': toSecure === true, 'label label-primary': toSecure === false}" tabindex="1" focus-me="writerOpen && !writerReply" auto-size="to" spellcheck="false">
</p> </p>
<p> <p>
<span>Cc:</span> <span>Cc:</span>
@ -27,7 +27,7 @@
</div><!--/.subject-box--> </div><!--/.subject-box-->
<div class="body"> <div class="body">
<p ng-model="body" contentEditable="true" ng-change="updatePreview()" tabindex="4"></p> <p ng-model="body" contentEditable="true" ng-change="updatePreview()" tabindex="4" focus-me="writerOpen && writerReply"></p>
<div class="encrypt-preview"> <div class="encrypt-preview">
<p>-----BEGIN ENCRYPTED PREVIEW-----<br>{{ciphertextPreview}}<br>-----END ENCRYPTED PREVIEW-----</p> <p>-----BEGIN ENCRYPTED PREVIEW-----<br>{{ciphertextPreview}}<br>-----END ENCRYPTED PREVIEW-----</p>