Titles of new messages' windows should reflect the subject
maint-2.0.2
Luc Charland 2012-09-20 13:46:23 -04:00
parent ffd58305d8
commit 14586d251e
1 changed files with 10 additions and 0 deletions

View File

@ -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',