Skip to content
Snippets Groups Projects
Commit 0fde0e65 authored by Thomas Müller's avatar Thomas Müller
Browse files

Search results have to explicitly be added to the content area of the app

parent 0dd99083
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
<?php print_unescaped($content['content']) ?>
</div>
<?php } ?>
<div id="searchresults" class="hidden"></div>
</div><!-- closing app-content -->
<!-- config hints for javascript -->
......
......@@ -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'));
});
}
});
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment