mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
* Mail: update title of compose window with subject
This commit is contained in:
parent
3433e2bf13
commit
2f7d27f56a
@ -180,6 +180,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
this.mail_isMainWindow = false;
|
this.mail_isMainWindow = false;
|
||||||
this.compose_fieldExpander_init();
|
this.compose_fieldExpander_init();
|
||||||
|
|
||||||
|
this.subject2title();
|
||||||
|
|
||||||
// Set autosaving interval to 2 minutes for compose message
|
// Set autosaving interval to 2 minutes for compose message
|
||||||
window.setInterval(function (){
|
window.setInterval(function (){
|
||||||
that.saveAsDraft(null,that.et2.getWidgetById('button[saveAsDraft]'),'autosaving');
|
that.saveAsDraft(null,that.et2.getWidgetById('button[saveAsDraft]'),'autosaving');
|
||||||
@ -4112,5 +4114,21 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write / update compose window title with subject
|
||||||
|
*
|
||||||
|
* @param {DOMNode} _node
|
||||||
|
* @param {et2_widget} _widget
|
||||||
|
*/
|
||||||
|
subject2title: function(_node, _widget)
|
||||||
|
{
|
||||||
|
if (!_widget) _widget = this.et2.getWidgetById('subject');
|
||||||
|
|
||||||
|
if (_widget && _widget.get_value())
|
||||||
|
{
|
||||||
|
document.title = _widget.get_value();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
</row>
|
</row>
|
||||||
<row class="mailComposeHeaders">
|
<row class="mailComposeHeaders">
|
||||||
<description value="Subject"/>
|
<description value="Subject"/>
|
||||||
<textbox align="left" width="100%" id="subject" height="25"/>
|
<textbox align="left" width="100%" id="subject" height="25" onchange="app.mail.subject2title"/>
|
||||||
<checkbox statustext="Change editor type" label="HTML" id="mimeType" onchange="app.mail.submitOnChange" options=",, ,disable" tabindex="7"/>
|
<checkbox statustext="Change editor type" label="HTML" id="mimeType" onchange="app.mail.submitOnChange" options=",, ,disable" tabindex="7"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
Loading…
Reference in New Issue
Block a user