Skip to content
Snippets Groups Projects
Commit 20ad3f33 authored by Marcin's avatar Marcin Committed by GitHub
Browse files

Fixed path in other folders search

parent a4266f59
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
show size and last modified date on the right */ show size and last modified date on the right */
this.updateLegacyMimetype(result); 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.info div.name').after($pathDiv).text(result.name);
$row.find('td.result a').attr('href', result.link); $row.find('td.result a').attr('href', result.link);
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
show size and last modified date on the right */ show size and last modified date on the right */
this.updateLegacyMimetype(result); 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.info div.name').after($pathDiv).text(result.name);
$row.find('td.result a').attr('href', result.link); $row.find('td.result a').attr('href', result.link);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment