diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-28 13:01:36 -0500 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-28 13:01:36 -0500 |
commit | 86b65c269a858cfba953f49d7ac86a759865fcc3 (patch) | |
tree | 7f2eae11d18f414804103a356c3480533fbca51f /files | |
parent | 349923c5b8aacf82b8032f55a56aff63e7a1072a (diff) | |
download | nextcloud-server-86b65c269a858cfba953f49d7ac86a759865fcc3.tar.gz nextcloud-server-86b65c269a858cfba953f49d7ac86a759865fcc3.zip |
Keep the urls pretty, decode forward slashes for newly added directories
Diffstat (limited to 'files')
-rw-r--r-- | files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js index c8720d5a435..35847e06dfe 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -40,7 +40,7 @@ FileList={ html = $('<tr></tr>').attr({ "data-type": "dir", "data-size": size, "data-file": name}); td = $('<td></td>').attr({"class": "filename", "style": 'background-image:url('+OC.imagePath('core', 'filetypes/folder.png')+')' }); td.append('<input type="checkbox" />'); - var link_elem = $('<a></a>').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name) }); + var link_elem = $('<a></a>').attr({ "class": "name", "href": "index.php?dir="+ encodeURIComponent($('#dir').val()+'/'+name).replace(/%2F/g, '/') }); link_elem.append($('<span></span>').addClass('nametext').text(name)); td.append(link_elem); html.append(td); |