mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-09 06:51:14 +01:00
fix javaScript error for firstChild is null, on opening mails without subject, or with no accessible subject
This commit is contained in:
parent
c997f1f1f6
commit
32a20c8eaa
@ -56,7 +56,7 @@ function initAll()
|
||||
}
|
||||
|
||||
function updateTitle() {
|
||||
var _text = document.getElementById('subjectDATA').firstChild.nodeValue;
|
||||
var _text = document.getElementById('subjectDATA').firstChild ? document.getElementById('subjectDATA').firstChild.nodeValue:'';
|
||||
if(_text.length>40) {
|
||||
_text = _text.substring(0,40) + '...';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user