Commit 9f62df1c6f3d91f5f0972eacae8970b74630ff9b
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'rails3_chat' into stable
Conflicts: public/javascripts/application.js
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
public/javascripts/application.js
@@ -588,9 +588,12 @@ function display_notice(message) { | @@ -588,9 +588,12 @@ function display_notice(message) { | ||
588 | } | 588 | } |
589 | 589 | ||
590 | function open_chat_window(self_link, anchor) { | 590 | function open_chat_window(self_link, anchor) { |
591 | - anchor = anchor || '#'; | ||
592 | - var noosfero_chat_window = window.open(noosfero_root() + '/chat' + anchor,'noosfero_chat','width=900,height=500'); | ||
593 | - noosfero_chat_window.focus(); | 591 | + if(anchor) { |
592 | + jQuery('#chat').show('fast'); | ||
593 | + jQuery("#chat" ).trigger('opengroup', anchor); | ||
594 | + } else { | ||
595 | + jQuery('#chat').toggle('fast'); | ||
596 | + } | ||
594 | return false; | 597 | return false; |
595 | } | 598 | } |
596 | 599 |