Browse Source
Remove single quotes around search query like in user search
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/3848/head
Joas Schilling
9 years ago
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
2 changed files with
4 additions and
4 deletions
-
apps/files/js/filelist.js
-
core/search/js/search.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}', '<strong>').replace('{endtag}', '</strong>')); |
|
|
|
} |
|
|
|
|
|
|
|
@ -216,9 +216,9 @@ |
|
|
|
if (count === 0) { |
|
|
|
$status.addClass('emptycontent').removeClass('status'); |
|
|
|
$status.html(''); |
|
|
|
$status.append('<div class="icon-search"></div>'); |
|
|
|
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>'); |
|
|
|
$status.append($('<div>').addClass('icon-search')); |
|
|
|
var error = t('core', 'No search results in other folders for {tag}{filter}{endtag}', {filter:lastQuery}); |
|
|
|
$status.append($('<h2>').html(error.replace('{tag}', '<strong>').replace('{endtag}', '</strong>'))); |
|
|
|
} 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})); |
|
|
|
|