зеркало из https://github.com/mozilla/pjs.git
Check if the pagetitle was generated first..
This commit is contained in:
Родитель
21d4070e16
Коммит
4dd71cc05c
|
@ -101,12 +101,15 @@ blenderObject.prototype.apply = function () {
|
|||
htmlFragment = xsltProcessor.transformToFragment(this.xmlRef, this.targetDocument);
|
||||
} catch (e) {
|
||||
}
|
||||
this.targetElement.appendChild(htmlFragment.firstChild);
|
||||
|
||||
document.title=document.getElementById("pagetitle").innerHTML;
|
||||
|
||||
//document.getElementById("loadmessage").style.display="none";
|
||||
this.targetElement.appendChild(htmlFragment.firstChild);
|
||||
|
||||
/*
|
||||
* Updates the page title if pagetitle generated ID exists.
|
||||
* Check the rss_*.xml templates for additional details..
|
||||
*/
|
||||
if(document.getElementById("pagetitle")) {
|
||||
document.title=document.getElementById("pagetitle").innerHTML;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче