Commit 64f8e3a7fc269a29a759fac741499de9fb3b9664

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent 80008f7c

Fix bosh service url

app/views/shared/logged_in/xmpp_chat.html.erb
... ... @@ -12,6 +12,7 @@
12 12 var $own_name = '<%= user.name %>';
13 13 var $starting_chat_notice = '<%= _("starting chat with %{name}") %>';
14 14 var $muc_domain = '<%= "conference.#{environment.default_hostname}" %>';
  15 + var $bosh_service = '//<%= environment.default_hostname %>/http-bind';
15 16 var $user_unavailable_error = '<%= _("<strong>ooops!</strong> The message could not be sent because the user is not online") %>';
16 17 var $update_presence_status_every = <%= User.expires_chat_status_every.minutes %>;
17 18 </script>
... ...
public/javascripts/chat.js
... ... @@ -20,7 +20,7 @@ jQuery(function($) {
20 20 var Jabber = {
21 21 debug: true,
22 22 connection: null,
23   - bosh_service: 'http://10.32.113.131/http-bind',
  23 + bosh_service: $bosh_service,
24 24 muc_domain: $muc_domain,
25 25 muc_supported: false,
26 26 presence_status: '',
... ...