~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:46:34 UTC
  • Revision ID: matt.giuca@gmail.com-20100223074634-r08p14zoy3u5atoc
browser.js: Fixed check for whether to use specialhome -- now works if the path ends in a '/'. This fixes Launchpad Bug #492510.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
    }
248
248
 
249
249
    var subjects = null;
 
250
    /* Remove trailing slash (or path==username won't compare properly) */
 
251
    if (path[path.length-1] == "/")
 
252
        path = path.substr(0, path.length-1);
250
253
    var top_level_dir = path==username;
251
254
    if (top_level_dir)
252
255
    {