~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-25 23:42:32 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:592
fileservice, browser/listing: Added new fileservice action, "mkdir".
    listing has a "Make Directory" button which calls this action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    return false;
63
63
}
64
64
 
 
65
function action_mkdir()
 
66
{
 
67
    var path = prompt("New directory name?");
 
68
    if (path == null) return;
 
69
    do_action("mkdir", current_path, {"path":path});
 
70
    return false;
 
71
}
 
72
 
65
73
function action_copy(files)
66
74
{
67
75
    do_action("copy", current_path, {"path":files});
377
385
        "Paste the copied or cut files to the current directory", null,
378
386
        "return action_paste()");
379
387
    sidepanel.appendChild(p);
 
388
    p = dom_make_link_elem("p", "Make Directory",
 
389
        "Make a new subdirectory in the current directory", null,
 
390
        "return action_mkdir()");
 
391
    sidepanel.appendChild(p);
380
392
    p = dom_make_link_elem("p", "Upload",
381
393
        "Upload a file to the current directory", null,
382
394
        "return show_uploadpanel()");