pkdevbox / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Update crashes when there is no title. #300

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an IUI HTML page without .toolbar

Crashes on load.

The code in updatePage():

var pageTitle = $("pageTitle");
if (page.title)
    pageTitle.innerHTML = page.title;
var ttlClass = page.getAttribute("ttlclass");
pageTitle.className = ttlClass ? ttlClass : "";

Can be slightly modified:

if (page.title){
    pageTitle.innerHTML = page.title;
    var ttlClass = page.getAttribute("ttlclass");
    pageTitle.className = ttlClass ? ttlClass : "";
}

That solves it, the rest is easy to override in CSS.

Original issue reported on code.google.com by san0f...@gmail.com on 22 Sep 2011 at 10:29

GoogleCodeExporter commented 8 years ago

Original comment by msgilli...@gmail.com on 26 Sep 2011 at 12:28