mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 01:45:08 +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:
@@ -16,7 +16,7 @@
|
||||
<table class="mailer_fieldtable">
|
||||
<tr class="mailer_fieldrow">
|
||||
<td class="mailer_fieldname" ><var:string label:value="Subject"/>:</td>
|
||||
<td class="mailer_subjectfieldvalue"><var:string value="messageSubject"/></td>
|
||||
<td class="mailer_subjectfieldvalue" id="subject"><var:string value="messageSubject"/></td>
|
||||
</tr>
|
||||
<tr class="mailer_fieldrow">
|
||||
<td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@ function initPopupMailer(event) {
|
||||
window.messageUID = mailboxName + "/" + messageName;
|
||||
|
||||
handleReturnReceipt();
|
||||
|
||||
var td = $("subject");
|
||||
if (td)
|
||||
document.title = td.allTextContent();
|
||||
}
|
||||
|
||||
function onICalendarButtonClick(event) {
|
||||
|
||||
Reference in New Issue
Block a user