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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-01-14 05:54:31 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:225
util.js: Yet more fixes for encoding/decoding URIs. build_url and parse_url
    had some instances of multiple encoding/decoding. Now confident they will
    correctly encode/decode just once.
browser.js: Combined settitle and presentpath (since they have very related
    actions, the one function just does both).

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
{
187
187
    /* TODO: Set location bar to "path" */
188
188
    current_path = path;
189
 
    settitle(path);
190
189
 
191
190
    /* Clear away the existing page contents */
192
191
    clearpage();
321
320
    }
322
321
}
323
322
 
324
 
function settitle(path)
325
 
{
326
 
    document.title = path_basename(path) + " - IVLE";
327
 
}
328
 
 
329
323
/*** HANDLERS for different types of responses (such as dir listing, file,
330
324
 * etc). */
331
325
 
347
341
    var href_path = make_path(this_app);
348
342
    var nav_path = "";
349
343
 
 
344
    /* Also set the document title */
 
345
    document.title = path_basename(path) + " - IVLE";
350
346
    /* Create all of the paths */
351
347
    for each (var dir in path.split("/"))
352
348
    {