summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskjnldsv <fremulon@protonmail.com>2016-10-11 14:21:37 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-10-11 15:06:25 +0200
commit1930aa3102b52258480c52998661802432c866b1 (patch)
treef63ccd907ec06a7dae400e64d88f43f4fc7d2300
parent35a7a4f3136ab35fbc31a983c2207cf9ecdffb1d (diff)
downloadnextcloud-server-1930aa3102b52258480c52998661802432c866b1.tar.gz
nextcloud-server-1930aa3102b52258480c52998661802432c866b1.zip
Fix bold no results search text
Fix wording
-rw-r--r--apps/files/js/filelist.js3
-rw-r--r--core/search/js/search.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 2e36e884346..09c35e0d061 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2426,8 +2426,9 @@
$('#searchresults').addClass('filter-empty');
$('#searchresults .emptycontent').addClass('emptycontent-search');
if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden') ) {
+ var error = t('files', "No search results in other folders for '{tag}{filter}{endtag}'", {filter:this._filter}, null, {'escape': false});
this.$el.find('.nofilterresults').removeClass('hidden').
- find('h2').text(t('files', "No results in this folder for {filter}", {filter:this._filter}, null, {'escape': false}));
+ find('p').html(error.replace('{tag}', '<strong>').replace('{endtag}', '</strong>'));
}
} else {
$('#searchresults').removeClass('filter-empty');
diff --git a/core/search/js/search.js b/core/search/js/search.js
index 559fbcf9adf..93b1961eea5 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -217,7 +217,8 @@
$status.addClass('emptycontent').removeClass('status');
$status.html('');
$status.append('<div class="icon-search"></div>');
- $status.append('<h2>' + t('core', 'No search results in other folders {filter}', {filter:lastQuery}) + '</h2>');
+ var error = t('core', "No search results in other folders for '{tag}{filter}{endtag}'", {filter:lastQuery});
+ $status.append('<h2>' + error.replace('{tag}', '<strong>').replace('{endtag}', '</strong>') + '</h2>');
} else {
$status.removeClass('emptycontent').addClass('status');
$status.text(n('core', '{count} search result in another folder', '{count} search results in other folders', count, {count:count}));