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

« back to all changes in this revision

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

  • Committer: wagrant
  • Date: 2008-07-21 23:53:43 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:927
browser, console: Rewrite and extend the Help pages. How does Matt
      manage to conflict with this when they hadn't been edited for 3.5
      months before last night!?

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
        return;
242
242
    }
243
243
 
244
 
    var subjects = null;
245
 
    var top_level_dir = path==username;
246
 
    if (top_level_dir)
247
 
    {
248
 
        var req = ajax_call(null, "userservice", "get_enrolments", null, "GET")
249
 
        subjects = decode_response(req);
250
 
    }
251
 
 
252
 
 
253
244
    /* This will always return a listing, whether it is a dir or a file.
254
245
     */
255
246
    var listing = response.responseText;
307
298
    var isdir = response.getResponseHeader("X-IVLE-Return") == "Dir";
308
299
    if (isdir)
309
300
    {
310
 
        setup_for_listing();
311
 
        home_listing(listing, subjects, path);
 
301
        handle_dir_listing(path, listing);
312
302
    }
313
303
    else
314
304
    {
760
750
    /* Log should be available for revisions as well. */
761
751
    set_action_state("svnlog", single_versioned_path, true);
762
752
 
 
753
    /* current_path == username: We are at the top level */
 
754
    set_action_state("svncheckout", current_path == username);
 
755
 
763
756
    /* There is currently nothing on the More Actions menu of use
764
757
     * when the current file is not a directory. Hence, just remove
765
758
     * it entirely.
869
862
    case "svnlog":
870
863
        window.location = path_join(app_path('svnlog'), current_path, selected_files[0] || '');
871
864
        break;
 
865
    case "svncheckout":
 
866
        action_checkout();
 
867
        break;
872
868
    }
873
869
}
874
870