diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-09 12:39:40 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-06-09 12:39:40 +0200 |
commit | 0fde0e6569bbb69b032c684a8018a9b3699f43c6 (patch) | |
tree | b8c2cf7e3f685c353d9772c3419d2061fdb2abd3 /core/search | |
parent | 0dd990839eb5da1af0e6671f7d7a815328560330 (diff) | |
download | nextcloud-server-0fde0e6569bbb69b032c684a8018a9b3699f43c6.tar.gz nextcloud-server-0fde0e6569bbb69b032c684a8018a9b3699f43c6.zip |
Search results have to explicitly be added to the content area of the app
Diffstat (limited to 'core/search')
-rw-r--r-- | core/search/js/search.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js index 4d0cf69eeba..22769ee2e48 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -379,19 +379,16 @@ $(document).ready(function() { var $searchResults = $('#searchresults'); - if ($searchResults.length) { + if ($searchResults.length > 0) { $searchResults.addClass('hidden'); $('#app-content') .find('.viewcontainer').css('min-height', 'initial'); + $searchResults.load(OC.webroot + '/core/search/templates/part.results.html', function () { + OC.Search = new OCA.Search($('#searchbox'), $('#searchresults')); + }); } else { - $searchResults = $('<div id="searchresults" class="hidden"/>'); - $('#app-content') - .append($searchResults) - .find('.viewcontainer').css('min-height', 'initial'); - } - $searchResults.load(OC.webroot + '/core/search/templates/part.results.html', function () { OC.Search = new OCA.Search($('#searchbox'), $('#searchresults')); - }); + } }); /** |