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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-02-25 05:52:17 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:578
fileservice: Added code to allow browing of past revisons in the File Browser
using the 'r' query URL

brower.js: Added code to allow passing of the query string to the fileservice 
app and to display a new icon

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    "added": "added.png",
66
66
    "missing": "missing.png",
67
67
    "deleted": "deleted.png",
68
 
    "modified": "modified.png"
 
68
    "modified": "modified.png",
 
69
    "revision": "revision.png"
69
70
};
70
71
 
71
72
/* Mapping SVN status to "nice" strings */
78
79
    "replaced": "Permanent file (replaced)",
79
80
    "modified": "Permanent file (modified)",
80
81
    "merged": "Permanent file (merged)",
81
 
    "conflicted": "Permanent file (conflicted)"
 
82
    "conflicted": "Permanent file (conflicted)",
 
83
    "revision": "Past Permanent file (revision)"
82
84
};
83
85
 
84
86
default_svn_icon = null;
156
158
            /* Read the response and set up the page accordingly */
157
159
            handle_response(path, response, editmode);
158
160
        }
 
161
    /* Get any query strings */
 
162
    url = parse_url(window.location.href);
 
163
    
159
164
    /* Call the server and request the listing. This mutates the server. */
160
 
    ajax_call(callback, service_app, path, null, "GET");
 
165
    ajax_call(callback, service_app, path, url.args, "GET");
161
166
}
162
167
 
163
168
/** Determines the "handler type" from a MIME type.