Commit 5807071c6fbebd40197625168df9db637eb8ced6
1 parent
00320acf
Exists in
staging
and in
3 other branches
chat: use post instead of get to fetch avatars
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
public/javascripts/chat.js
| ... | ... | @@ -300,7 +300,7 @@ jQuery(function($) { |
| 300 | 300 | groups_to_insert.push(room.jid); |
| 301 | 301 | }); |
| 302 | 302 | |
| 303 | - $.getJSON('/chat/avatars', {profiles: profiles}, function(data) { | |
| 303 | + $.post('/chat/avatars', {profiles: profiles}, function(data) { | |
| 304 | 304 | for(identifier in data) |
| 305 | 305 | Jabber.avatars[identifier] = data[identifier]; |
| 306 | 306 | |
| ... | ... | @@ -322,7 +322,7 @@ jQuery(function($) { |
| 322 | 322 | Jabber.send_availability_status(Jabber.presence_status); |
| 323 | 323 | load_defaults(); |
| 324 | 324 | updateAvailabilities(); |
| 325 | - }); | |
| 325 | + }, 'json'); | |
| 326 | 326 | }, |
| 327 | 327 | error: function(data, textStatus, jqXHR){ |
| 328 | 328 | console.log(data); | ... | ... |