Add UI for restoring a message draft.

(imported from commit 3e374048a59d2caf858eb1ce9eae3e22eb0835e4)
This commit is contained in:
Jessica McKellar 2013-04-05 10:44:29 -04:00 committed by Tim Abbott
parent de902be108
commit f407d6b935
2 changed files with 18 additions and 7 deletions

View File

@ -48,11 +48,14 @@
<input type="submit" value="Send" id="compose-send-button" class="btn btn-primary send_message" tabindex="150"/> <input type="submit" value="Send" id="compose-send-button" class="btn btn-primary send_message" tabindex="150"/>
</div> </div>
</div> </div>
<div id="tab-enter-message"> <div id="below-compose-content">
<span id="sending-indicator">Sending...</span> <span id="restore-draft" onclick="compose.restore_message();">Restore last draft?</span>
<label class="pull-right">Press Enter to send&nbsp; <span id="tab-enter-message">
<input type="checkbox" id="enter_sends" name="enter_sends" value="ender_sends" /> <span id="sending-indicator">Sending...</span>
</label> <label class="pull-right inline">Press Enter to send&nbsp;
<input type="checkbox" id="enter_sends" name="enter_sends" value="ender_sends" />
</label>
</span>
</div> </div>
</td> </td>
</tr> </tr>

View File

@ -473,7 +473,7 @@ blockquote p {
margin-right: 0px; margin-right: 0px;
} }
#tab-enter-message { #below-compose-content {
display: table-row; display: table-row;
font-size: 80%; font-size: 80%;
white-space: nowrap; white-space: nowrap;
@ -1115,4 +1115,12 @@ li.expanded_subject {
.sub-unsub-message { .sub-unsub-message {
text-align: center; text-align: center;
padding-bottom: 10px; /* same as .bookend */ padding-bottom: 10px; /* same as .bookend */
} }
#restore-draft {
visibility: hidden;
}
#restore-draft:hover {
cursor: pointer;
}