From 4dd71cc05ce0ddd1a1923834db5e0b062aa8474b Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Thu, 12 Jan 2006 23:46:42 +0000 Subject: [PATCH] Check if the pagetitle was generated first.. --- minimo/chrome/content/rssview/rssload.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/minimo/chrome/content/rssview/rssload.js b/minimo/chrome/content/rssview/rssload.js index 6480a04edcf..031951376af 100644 --- a/minimo/chrome/content/rssview/rssload.js +++ b/minimo/chrome/content/rssview/rssload.js @@ -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; + } } }