mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-17 09:25:25 +00:00
Fixed bug #1104 : subject is used as title always
When the windows were opened, subject was not used as title.
This commit is contained in:
@@ -423,6 +423,12 @@ function initMailEditor() {
|
||||
|
||||
configureDragHandle();
|
||||
|
||||
// Set current subject as window title if not set, use '(Untitled)'
|
||||
if (document.pageform.subject.value == "")
|
||||
document.title = '(' + _("Untitled") + ')';
|
||||
else
|
||||
document.title = _(document.pageform.subject.value);
|
||||
|
||||
// Change the window title when typing the subject
|
||||
$$("div#subjectRow input").first().on("keyup", updateWindowTitleFromSubject);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user