diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-01-13 16:42:04 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-01-14 15:15:39 +0100 |
commit | dc17019536551915e4417b08904e9fb5f6f49689 (patch) | |
tree | 395dbecaf33cca71905b96dba276561620a0cb7e /core/search/js | |
parent | a83647928722eef039302971e36fd58e3238de25 (diff) | |
download | nextcloud-server-dc17019536551915e4417b08904e9fb5f6f49689.tar.gz nextcloud-server-dc17019536551915e4417b08904e9fb5f6f49689.zip |
adjust paths for search
Diffstat (limited to 'core/search/js')
-rw-r--r-- | core/search/js/search.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js index 57de07bf7fd..c6542ffc138 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -97,7 +97,7 @@ */ this.search = function(query, inApps, page, size) { if (query) { - OC.addStyle('search','results'); + OC.addStyle('core/search','results'); if (typeof page !== 'number') { page = 1; } @@ -128,7 +128,7 @@ $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 - $.getJSON(OC.generateUrl('search/ajax/search.php'), {query:query, inApps:inApps, page:page, size:size }, function(results) { + $.getJSON(OC.generateUrl('core/search'), {query:query, inApps:inApps, page:page, size:size }, function(results) { lastResults = results; if (page === 1) { showResults(results); @@ -364,7 +364,7 @@ $(document).ready(function() { $('#app-content') .append($searchResults) .find('.viewcontainer').css('min-height', 'initial'); - $searchResults.load(OC.webroot + '/search/templates/part.results.html', function () { + $searchResults.load(OC.webroot + '/core/search/templates/part.results.html', function () { OC.Search = new OCA.Search($('#searchbox'), $('#searchresults')); }); }); |