| ... |
... |
@@ -38,7 +38,7 @@ |
| 38 |
38 |
const contextSearchButton = document.getElementById("context-search-button"); |
| 39 |
39 |
const xwikiSpace = space ? `.${space}` : ''; |
| 40 |
40 |
contextSearchButton.addEventListener('click', function() { |
| 41 |
|
- const res = $.post(solrServiceURL, { |
|
41 |
+ $.post(solrServiceURL, { |
| 42 |
42 |
outputSyntax: 'plain', |
| 43 |
43 |
media: 'json', |
| 44 |
44 |
query: [ |
| ... |
... |
@@ -47,8 +47,8 @@ |
| 47 |
47 |
`fq=space:Collabs${xwikiSpace}.*` |
| 48 |
48 |
].join('\n'), |
| 49 |
49 |
input: $('#context-search-text').val() |
| 50 |
|
- }); |
| 51 |
|
- console.log(res); |
|
50 |
+ }).then(console.log); |
|
51 |
+ |
| 52 |
52 |
}); |
| 53 |
53 |
}); |
| 54 |
54 |
} |