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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-06-23 10:34:43 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:787
fileservice_lib/action.py:
    * Fixed TODOs, and comments.
    * putfile: Added "overwrite" optional parameter. If true, overwrites,
      otherwise error. Note: This changes the default behaviour (used to
      overwrite by default).
editor.js: Call to putfile has overwrite: true, as necessary to keep the old
    behaviour.
listing.js: Comment on "new file".

Note: This commit changes the behaviour of "new file" so it has an error if
the file already exists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    data = editAreaLoader.getValue("editbox");
6
6
    /* Do NOT refresh the page contents (causes problems for editarea and is
7
7
     * unnecessary). */
8
 
    do_action("putfile", filename, {"path":".", "data":data}, null, true);
 
8
    do_action("putfile", filename,
 
9
              {"path":".", "data":data, "overwrite":"true"}, null, true);
9
10
    savebutton.setAttribute("value", "Saved");
10
11
    // XXX Do not disable for now; there is a problem getting the callback
11
12
    // to edit_text.