~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 12:38:52 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:792
util.js: ajax_call: Fixed multipart/form-data post request generation. (Syntax
                    error meant it wouldn't work at all).
editor.js: "Save" now writes a multipart/form-data request, not urlencoded.
    Important for large writes to save bandwidth.

Show diffs side-by-side

added added

removed removed

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