summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-12-09 16:35:49 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-10 10:01:01 -0500
commit88f29d8b6d643a7043a2fba3f341feca0a1b2425 (patch)
treed68d321b5a3eec0bb9a92985fb73dc728e47298f /web/react/utils
parent84aa572f67cc41d59690a73f080d0f6c81be4ae0 (diff)
downloadchat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.tar.gz
chat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.tar.bz2
chat-88f29d8b6d643a7043a2fba3f341feca0a1b2425.zip
Fixed EditChannelHeaderModal's contents not always being updated when a change is made
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/client.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 09e962161..5d02a8c88 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -590,7 +590,12 @@ export function updateChannel(channel, success, error) {
track('api', 'api_channels_update');
}
-export function updateChannelHeader(data, success, error) {
+export function updateChannelHeader(channelId, header, success, error) {
+ const data = {
+ channel_id: channelId,
+ channel_header: header
+ };
+
$.ajax({
url: '/api/v1/channels/update_header',
dataType: 'json',