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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/browser.js

  • Committer: Matt Giuca
  • Date: 2010-02-23 07:42:32 UTC
  • Revision ID: matt.giuca@gmail.com-20100223074232-atq05s66gxa5h7on
specialhome.js: Refactor so home_listing (now special_home_listing) is ONLY called if the special home is used, rather than all the time. browser.js: Now calls special_home_listing conditionally.

Show diffs side-by-side

added added

removed removed

Lines of Context:
313
313
    if (isdir)
314
314
    {
315
315
        setup_for_listing();
316
 
        home_listing(listing, subjects, path);
 
316
        if (top_level_dir)
 
317
        {
 
318
            /* Top-level dir, with subjects */
 
319
            special_home_listing(listing, subjects, path);
 
320
        }
 
321
        else
 
322
        {
 
323
            /* Not the top-level dir. Do a normal dir listing. */
 
324
            handle_dir_listing(path, listing.listing);
 
325
        }
317
326
    }
318
327
    else
319
328
    {