~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-01-17 04:58:07 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:241
util.js: dom_make_link_elem: Added argument dontencode, necessary to sometimes
    not encode the href.
listing.js: When creating a download link for multiple files (which includes a
    query string), do manual URL encoding and set dontencode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
    }
246
246
    else
247
247
    {
248
 
        path = app_path(download_app, current_path) + "?";
 
248
        path = urlencode_path(app_path(download_app, current_path)) + "?";
249
249
        for (var i=0; i<selected_files.length; i++)
250
250
            path += "path=" + encodeURIComponent(selected_files[i]) + "&";
251
251
        path = path.substr(0, path.length-1);
252
252
        /* Multiple files selected */
253
253
        p = dom_make_link_elem("p", "Download as zip",
254
 
            "Download the selected files as a ZIP file", path);
 
254
            "Download the selected files as a ZIP file", path, null, true);
255
255
        sidepanel.appendChild(p);
256
256
    }
257
257