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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-04-02 07:38:03 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090402073803-5c5ijzhpetsdt0sg
Implement the Submit filebrowser action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
846
846
        window.open(public_app_path("~" + current_path, filename), 'share')
847
847
        break;
848
848
    case "submit":
849
 
        // TODO
850
 
        alert("Not yet implemented: Submit");
 
849
        if (selected_files.length == 1)
 
850
            stat = file_listing[selected_files[0]];
 
851
        else
 
852
            stat = current_file;
 
853
        path = stat.svnurl.substr(svn_base.length);
 
854
        window.location = path_join(app_path('+submit'), path) + '?revision=' + stat.svnrevision;
851
855
        break;
852
856
    case "rename":
853
857
        action_rename(filename);