summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 9bcbeed4e..5d0dd07c9 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1267,13 +1267,17 @@ export default class Client {
this.track('api', 'api_posts_delete');
}
- search = (terms, success, error) => {
+ search = (terms, isOrSearch, success, error) => {
+ const data = {};
+ data.terms = terms;
+ data.is_or_search = isOrSearch;
+
request.
- get(`${this.getTeamNeededRoute()}/posts/search`).
+ post(`${this.getTeamNeededRoute()}/posts/search`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- query({terms}).
+ send(data).
end(this.handleResponse.bind(this, 'search', success, error));
this.track('api', 'api_posts_search');