Changeset 14005 for trunk/web/index.html


Ignore:
Timestamp:
Feb 10, 2013, 6:33:04 PM (10 years ago)
Author:
jordan
Message:

In Web Client, use jQuery.ajax() to upload files

If we use FormData? and jQuery.ajax() calls to upload a torrent,
we can stop bundling the jquery.form.js module. In addition, this
simplifies passing arguments in the headers s.t. rpc-server.c doesn't
have to look for the CSRF token as one of the multiparts.

This changes the upload POST behavior, so give it a new name (upload2).
The old function (upload) will be deprecated but kept until 2.90 so
that third-party web clients using the old POST semantics will have
time to update.

Bug #5290 <https://trac.transmissionbt.com/ticket/5290>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/index.html

    r14003 r14005  
    2222                <script type="text/javascript" src="./javascript/jquery/jquery.transmenu.min.js"></script>
    2323                <script type="text/javascript" src="./javascript/jquery/jquery.contextmenu.min.js"></script>
    24                 <script type="text/javascript" src="./javascript/jquery/jquery.form.min.js"></script>
    2524                <script type="text/javascript" src="./javascript/jquery/json2.min.js"></script>
    2625                <script type="text/javascript" src="./javascript/common.js"></script>
     
    292291                                                <label for="torrent_upload_url">Or enter a URL:</label>
    293292                                                        <input type="url" id="torrent_upload_url"/>
     293                                                <label id='add-dialog-folder-label' for="add-dialog-folder-input">Destination folder:</label>
     294                                                        <input type="text" id="add-dialog-folder-input"/>
    294295                                                        <input type="checkbox" id="torrent_auto_start" />
    295296                                                <label for="torrent_auto_start" id="auto_start_label">Start when added</label>
Note: See TracChangeset for help on using the changeset viewer.