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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/specialhome.js

  • Committer: William Grant
  • Date: 2010-02-04 01:14:54 UTC
  • Revision ID: grantw@unimelb.edu.au-20100204011454-vrggmwcxuy88e3cj
Give specialhome a link to each offering index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        {
67
67
            var subject = subjects[i];
68
68
            var subjpath = subject.subj_short_name;
69
 
            // Header
70
 
            h3 = dom_make_text_elem("h3", subject.subj_name);
71
 
            specialhomediv.appendChild(h3);
 
69
            // Header, with link to offering home page.
 
70
            h3 = $('<h3><span></span> <span style="font-weight: normal">&ndash; <a class="subjectaction">Subject home</a></span>');
 
71
            h3.find('span:first-child').text(subject.subj_name);
 
72
            h3.find('a').attr('href', subject.url);
 
73
            $(specialhomediv).append(h3);
72
74
        
73
75
            /* Print the file listing */
74
76
            ul = document.createElement("ul");