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

« back to all changes in this revision

Viewing changes to www/media/common/util.js

  • Committer: mattgiuca
  • Date: 2008-01-16 21:41:56 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:234
browser/listing.js:
    * No longer use row indices to identify rows (since rows may be out of
      order if they are sorted).
    * Store filename/fileinfo in the DOM nodes so given a DOM node you can
      get the file information without having to parse it back up (ew).
util.js: dom_make_img_node now performs url encoding on the src attribute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
function dom_make_img(src, width, height, title, alt)
94
94
{
95
95
    var img = document.createElement("img");
96
 
    img.setAttribute("src", src);
 
96
    img.setAttribute("src", urlencode_path(src));
97
97
    if (width != null)
98
98
        img.setAttribute("width", width);
99
99
    if (height != null)