mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-11 21:39:43 +00:00
fixed bug #1104
Titles of new messages' windows should reflect the subject
This commit is contained in:
@@ -104,6 +104,13 @@ function insertContact(inputNode, contactName, contactEmail) {
|
||||
inputNode.value = value;
|
||||
}
|
||||
|
||||
function updateWindowTitleFromSubject(event) {
|
||||
if (this.value) {
|
||||
document.title = this.value;
|
||||
}else{
|
||||
document.title = _("Untitled");
|
||||
}
|
||||
}
|
||||
|
||||
/* mail editor */
|
||||
|
||||
@@ -416,6 +423,9 @@ function initMailEditor() {
|
||||
|
||||
configureDragHandle();
|
||||
|
||||
// Change the window title when typing the subject
|
||||
$$("div#subjectRow input").first().on("keyup", updateWindowTitleFromSubject);
|
||||
|
||||
var composeMode = UserDefaults["SOGoMailComposeMessageType"];
|
||||
if (composeMode == "html") {
|
||||
CKEDITOR.replace('text',
|
||||
|
||||
Reference in New Issue
Block a user