Changes for page Context Search Axel
Last modified by messines on 2022/10/14 11:41
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,8 +15,8 @@ 15 15 const json = await res.json(); 16 16 return JSON.stringify(json, null, 2); 17 17 } 18 - async function fetchCurrentCollabSearch(term, collabName) { 19 - const res = await fetch(`/rest/wikis/xwiki/spaces/Collabs/spaces/ ${collabName}/search?q=${term}&media=json`)18 + async function fetchCurrentCollabSearch(term/*, collabName*/) { 19 + const res = await fetch(`/rest/wikis/xwiki/spaces/Collabs/spaces/bougaultx/search?q=${term}&media=json`) 20 20 const json = await res.json(); 21 21 return JSON.stringify(json, null, 2); 22 22 } ... ... @@ -33,7 +33,7 @@ 33 33 document.location.href = `/bin/view/Collabs/#search=${term}`; 34 34 break; 35 35 case 'current-collab': 36 - fetchCurrentCollabSearch(term, collabName).then(results => contextSearchResponse.innerText = results); 36 + fetchCurrentCollabSearch(term/*, collabName*/).then(results => contextSearchResponse.innerText = results); 37 37 break 38 38 default: 39 39 fetchGlobalSearch(term).then(results => contextSearchResponse.innerText = results);