summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-12-28 08:59:23 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-12-28 08:59:23 -0500
commit0b55c5f86186ee5cce9cf29f3f560b2dd5b15277 (patch)
treeada7aa42d9102fabbcd0e91979be63de8dfed08f /web/react/utils/client.jsx
parentf9f6b0cea3e16038aacb454486a7f9fec037127a (diff)
parentcfdc5ab9998a86a8b540d8f5d5a7b429e919e4d6 (diff)
downloadchat-0b55c5f86186ee5cce9cf29f3f560b2dd5b15277.tar.gz
chat-0b55c5f86186ee5cce9cf29f3f560b2dd5b15277.tar.bz2
chat-0b55c5f86186ee5cce9cf29f3f560b2dd5b15277.zip
Merge pull request #1755 from hmhealey/plt1108
PLT-1108 Refactored ViewImage modal and made it automatically play animated gifs
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index a12e85f67..1c417153b 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -1076,7 +1076,9 @@ export function getFileInfo(filename, success, error) {
dataType: 'json',
contentType: 'application/json',
type: 'GET',
- success,
+ success: (data) => {
+ success(data);
+ },
error: function onError(xhr, status, err) {
var e = handleError('getFileInfo', xhr, status, err);
error(e);