From 0fe45966a0bc1ef4d1c668b82d6aa06c7be300fe Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 15 Mar 2017 12:53:44 +0100 Subject: Remove single quotes around search query like in user search Signed-off-by: Joas Schilling --- apps/files/js/filelist.js | 2 +- core/search/js/search.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 1f4b8f0ec68..1385fe26771 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2553,7 +2553,7 @@ $('#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}); + var error = t('files', 'No search results in other folders for {tag}{filter}{endtag}', {filter:this._filter}); this.$el.find('.nofilterresults').removeClass('hidden'). find('p').html(error.replace('{tag}', '').replace('{endtag}', '')); } diff --git a/core/search/js/search.js b/core/search/js/search.js index 44a69842374..b4175c49a3e 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -216,9 +216,9 @@ if (count === 0) { $status.addClass('emptycontent').removeClass('status'); $status.html(''); - $status.append(''); - var error = t('core', "No search results in other folders for '{tag}{filter}{endtag}'", {filter:lastQuery}); - $status.append('

' + error.replace('{tag}', '').replace('{endtag}', '') + '

'); + $status.append($('
').addClass('icon-search')); + var error = t('core', 'No search results in other folders for {tag}{filter}{endtag}', {filter:lastQuery}); + $status.append($('

').html(error.replace('{tag}', '').replace('{endtag}', ''))); } 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})); -- cgit v1.2.3