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

« back to all changes in this revision

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

  • Committer: matt.giuca
  • Date: 2009-01-18 23:03:54 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1166
setup.install: Merged change from Storm branch (should have been committed
    directly to trunk). Small bugfix.

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, 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);
 
69
            // Header
 
70
            h3 = dom_make_text_elem("h3", subject.subj_name);
 
71
            specialhomediv.appendChild(h3);
74
72
        
75
73
            /* Print the file listing */
76
74
            ul = document.createElement("ul");
172
170
                li.appendChild(span);
173
171
 
174
172
                var button = document.createElement("input");
175
 
                $(button).click(function(event)
 
173
                button.addEventListener("click", function(event)
176
174
                {
177
175
                    action_rename(path_join(path, name));
178
 
                });
 
176
                },
 
177
                false);
179
178
                button.setAttribute("type", "button");
180
179
                button.setAttribute("value", "Rename");
181
180
                span.appendChild(button);
191
190
            li.appendChild(span);
192
191
 
193
192
            var button = document.createElement("input");
194
 
            $(button).click(function(event)
 
193
            button.addEventListener("click", function(event)
195
194
            {
196
195
                li.setAttribute("class", "listing-loading");
197
196
 
200
199
                if (create_if_needed(repopath))
201
200
                {
202
201
                    // Try a checkout
203
 
                    do_act("svncheckout", {"path": [repopath, localpath]});
 
202
                    do_action("svncheckout", current_path, {"path":
 
203
                        [repopath, localpath]});
204
204
                }
205
205
                else
206
206
                {
207
207
                    li.setAttribute("class", "listing-dir");
208
208
                }
209
 
            });
 
209
            },
 
210
            false);
210
211
            button.setAttribute("type", "button");
211
212
            button.setAttribute("value", "Checkout");
212
213
            span.appendChild(button);
254
255
 */
255
256
function obj_length(obj)
256
257
{
257
 
    len = 0;
 
258
    length = 0;
258
259
    for (prop in obj)
259
 
        len++;
260
 
    return len;
 
260
        length++;
 
261
    return length;
261
262
}