summaryrefslogtreecommitdiffstats
path: root/webapp/utils/client.jsx
diff options
context:
space:
mode:
authorNicolas Clerc <kernicPanel@nclerc.fr>2016-02-15 09:11:35 +0100
committerNicolas Clerc <kernicPanel@nclerc.fr>2016-03-17 01:45:37 +0100
commit5e2596598f97e318f1e4e8bd835b08a011fa0b60 (patch)
tree68b3a9200e9858a7239d45b1869c38c1216d6bda /webapp/utils/client.jsx
parent809779a87f4380b6802314271b06540a31b83f53 (diff)
downloadchat-5e2596598f97e318f1e4e8bd835b08a011fa0b60.tar.gz
chat-5e2596598f97e318f1e4e8bd835b08a011fa0b60.tar.bz2
chat-5e2596598f97e318f1e4e8bd835b08a011fa0b60.zip
add external slashcommands management
Diffstat (limited to 'webapp/utils/client.jsx')
-rw-r--r--webapp/utils/client.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/utils/client.jsx b/webapp/utils/client.jsx
index 9bd62e22d..ef6d496a2 100644
--- a/webapp/utils/client.jsx
+++ b/webapp/utils/client.jsx
@@ -1002,12 +1002,13 @@ export function regenCommandToken(data, success, error) {
});
}
-export function listCommands(success, error) {
+export function listCommands(data, success, error) {
$.ajax({
url: '/api/v1/commands/list',
dataType: 'json',
contentType: 'application/json',
- type: 'GET',
+ type: 'POST',
+ data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
var e = handleError('listCommands', xhr, status, err);