summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2017-02-21 20:20:17 +0100
committerGitHub <noreply@github.com>2017-02-21 20:20:17 +0100
commit2836b54236082c31a4975a48f51ae5e81ac8e855 (patch)
tree12dc265a83dde60c167d85b9302127cdc956b514 /apps/files
parentd754227b4c5b475b0c8f3fea5f0c010c77cf7218 (diff)
parent20ad3f33d001b4dc8766c4d2a305d9d362d770b2 (diff)
downloadnextcloud-server-2836b54236082c31a4975a48f51ae5e81ac8e855.tar.gz
nextcloud-server-2836b54236082c31a4975a48f51ae5e81ac8e855.zip
Merge pull request #3557 from marncz/master
Fixed path in other folders search
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/search.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/search.js b/apps/files/js/search.js
index fa79d695165..140a66e346d 100644
--- a/apps/files/js/search.js
+++ b/apps/files/js/search.js
@@ -63,7 +63,7 @@
show size and last modified date on the right */
this.updateLegacyMimetype(result);
- var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1));
+ var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1, result.path.lastIndexOf("/")));
$row.find('td.info div.name').after($pathDiv).text(result.name);
$row.find('td.result a').attr('href', result.link);
@@ -80,7 +80,7 @@
show size and last modified date on the right */
this.updateLegacyMimetype(result);
- var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1));
+ var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1, result.path.lastIndexOf("/")));
$row.find('td.info div.name').after($pathDiv).text(result.name);
$row.find('td.result a').attr('href', result.link);