aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2016-09-09 18:01:00 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2016-09-09 18:01:00 +0200
commita45cfbc2d2754030510ac98607ca2cc53d750b57 (patch)
tree682ac3a904f90b355d6099fee460611c855ac34c /apps/files/js
parent3431591f34750fd9e7a085d7e041c1e762c86c52 (diff)
downloadnextcloud-server-a45cfbc2d2754030510ac98607ca2cc53d750b57.tar.gz
nextcloud-server-a45cfbc2d2754030510ac98607ca2cc53d750b57.zip
search design details
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
-rw-r--r--apps/files/js/search.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 26c6b34d098..2e36e884346 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2427,7 +2427,7 @@
$('#searchresults .emptycontent').addClass('emptycontent-search');
if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden') ) {
this.$el.find('.nofilterresults').removeClass('hidden').
- find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter}, null, {'escape': false}));
+ find('h2').text(t('files', "No results in this folder for {filter}", {filter:this._filter}, null, {'escape': false}));
}
} else {
$('#searchresults').removeClass('filter-empty');
diff --git a/apps/files/js/search.js b/apps/files/js/search.js
index 625e4b13f4b..fa79d695165 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);
+ var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1));
$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);
+ var $pathDiv = $('<div class="path"></div>').text(result.path.substr(1));
$row.find('td.info div.name').after($pathDiv).text(result.name);
$row.find('td.result a').attr('href', result.link);