mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +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
ff7a0b3ffd
commit
e084ade3b1
@ -63,7 +63,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