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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-02-28 06:49:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:603
Console now starts up in the user's home directory.
scripts/python-console: Now accepts an optional argument <working-dir>.
    If supplied, it will chdir into that dir before launching the console.
consoleservice: Now passes working-dir as an argument - this is the user's
    home directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
        var handler_type = null;
293
293
        if ("type" in file)
294
294
            handler_type = get_handler_type(file.type);
295
 
        /* Action: Use the "files" / "edit" app */
 
295
        /* Action: Use the "files" app */
296
296
        var path;
297
297
        if (selected_files.length == 1)
298
298
        {
303
303
                    app_path(this_app, current_path, filename));
304
304
            else if (handler_type == "text")
305
305
                p = dom_make_link_elem("p", "Edit", "Edit this file",
306
 
                    app_path(edit_app, current_path, filename));
 
306
                    app_path(this_app, current_path, filename));
307
307
            else
308
308
                p = dom_make_link_elem("p", "Browse",
309
309
                    "View this file in the file browser",
756
756
 */
757
757
function handle_dir_listing(path, listing)
758
758
{
759
 
    setmode(false);
760
759
    setup_for_dir_listing();
761
760
    var row_toggle = 1;
762
761
    /* Nav through the top-level of the JSON to the actual listing object. */