]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix bold no results search text 1606/head
authorskjnldsv <fremulon@protonmail.com>
Tue, 11 Oct 2016 12:21:37 +0000 (14:21 +0200)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 11 Oct 2016 13:06:25 +0000 (15:06 +0200)
Fix wording

apps/files/js/filelist.js
core/search/js/search.js

index 2e36e884346ddac0722186826f7b84ad7949c23d..09c35e0d061d0ae095a38e88d07118feae55b775 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});
                                        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');
index 559fbcf9adf469b6ca4d6a6e7e64adcd7b3fefd3..93b1961eea531d86abc0bb911e7a4a2ea6706c8f 100644 (file)
                                        $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}));