app/views/chat/_index.html.erb in social_stream-presence-0.8.4 vs app/views/chat/_index.html.erb in social_stream-presence-0.8.6

- old
+ new

@@ -78,13 +78,14 @@ <script type="text/javascript"> //Global variables var cookie = "AuthenticationByCookie>>" + "<%=cookies[Rails.application.config.session_options[:key]]%>"; var BOSH_SERVICE = '<%= SocialStream::Presence.bosh_service || root_url + "http-bind/" %>'; - var user_name = '<%=current_user.name%>'; + var user_name = '<%=current_user.name%>'; var user_slug = '<%=current_user.slug%>'; var user_jid = '<%=current_user.slug%>'+"@"+domain; + $(document).ready(function () { //Inicial field @@ -108,17 +109,24 @@ checkVideocallFeature(); }); </script> -<% if flow %> +<% if defined?(flow)!=nil and flow %> <script type="text/javascript"> $(document).ready(function () { createMainChatBox(); addContentToMainChatBox(modifyChatPartialIfMainBox($("#chat_partial"))); $("#chat_wrapper").find("#chat_partial").remove(); }); </script> +<% end %> + + +<% if defined?(group)!=nil and group %> + <script type="text/javascript"> + var current_group_slug = '<%=group.slug%>'; + </script> <% end %> <% end %> \ No newline at end of file