From 0fde0e6569bbb69b032c684a8018a9b3699f43c6 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 9 Jun 2015 12:39:40 +0200 Subject: Search results have to explicitly be added to the content area of the app --- core/search/js/search.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'core') 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 = $('