~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/browser/specialhome.js

  • Committer: wagrant
  • Date: 2008-07-24 06:19:30 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:949
specialhome: Only show the subjects header if we are enrolled in some
             subjects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
    /* SUBJECTS Section
45
45
    /* Create the header row */
46
 
    h1 = dom_make_text_elem("h1", "Subjects");
47
 
    filetablediv.appendChild(h1);
 
46
    if (subjects.length > 0)
 
47
    {
 
48
        h1 = dom_make_text_elem("h1", "Subjects");
 
49
        filetablediv.appendChild(h1);
 
50
    }
 
51
 
48
52
    /* Create the contents */
49
53
    for (var i=0; i<subjects.length; i++)
50
54
    {