]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove single quotes around search query like in user search 3848/head
authorJoas Schilling <coding@schilljs.com>
Wed, 15 Mar 2017 11:53:44 +0000 (12:53 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 15 Mar 2017 11:53:44 +0000 (12:53 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files/js/filelist.js
core/search/js/search.js

index 1f4b8f0ec68a238160a960177a1bafd159ee59f0..1385fe26771add0d4470acbc87ba78bdcde29848 100644 (file)
                                $('#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>'));
                                }
index 44a69842374ceb9a4e17fb097c43d7637321981b..b4175c49a3e2b769503f1d12152eaa12d21d80b5 100644 (file)
                                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}));