diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-24 10:56:44 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-24 11:29:29 +0100 |
commit | 17fbffceeb7722260bda9022d6046976b722388b (patch) | |
tree | 1fb1583dbf0ec472d8f67789425186e02419166e /core/search/js | |
parent | f2be172ae89b9d20e2bd2c87d253a69eff9162ac (diff) | |
download | nextcloud-server-17fbffceeb7722260bda9022d6046976b722388b.tar.gz nextcloud-server-17fbffceeb7722260bda9022d6046976b722388b.zip |
Use the same style when no search result was found
Diffstat (limited to 'core/search/js')
-rw-r--r-- | core/search/js/search.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js index c7feeacf42e..b49a4b8c6eb 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -125,6 +125,7 @@ //show spinner $searchResults.removeClass('hidden'); + $status.addClass('status'); $status.html(t('core', 'Searching other places')+'<img class="spinner" alt="search in progress" src="'+OC.webroot+'/core/img/loading.gif" />'); // do the actual search query @@ -209,8 +210,12 @@ var count = $searchResults.find('tr.result').length; $status.data('count', count); if (count === 0) { - $status.text(t('core', 'No search result in other places')); + $status.addClass('emptycontent').removeClass('status'); + $status.html(''); + $status.append('<div class="icon-search"></div>'); + $status.append('<h2>' + t('core', 'No search result in other places') + '</h2>'); } else { + $status.removeClass('emptycontent').addClass('status'); $status.text(n('core', '{count} search result in other places', '{count} search results in other places', count, {count:count})); } } @@ -383,4 +388,4 @@ OC.search.customResults = {}; /** * @deprecated use get/setRenderer() instead */ -OC.search.resultTypes = {};
\ No newline at end of file +OC.search.resultTypes = {}; |