Commit cf12a5f2b5f17578a2fec3ca0d1d35743e0d516e
1 parent
607decd2
Exists in
master
and in
22 other branches
Open chat windows properly after notification click
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
public/javascripts/chat.js
| ... | ... | @@ -692,7 +692,8 @@ jQuery(function($) { |
| 692 | 692 | if(!$('#chat').is(':visible') || window.isHidden()) { |
| 693 | 693 | var options = {body: message.body, icon: avatar, tag: jid_id}; |
| 694 | 694 | notifyMe(name, options).onclick = function(){ |
| 695 | - open_chat_window(null, '#'+jid); | |
| 695 | + jQuery('#chat').show('fast'); | |
| 696 | + jQuery('a#'+jid_id).click(); | |
| 696 | 697 | }; |
| 697 | 698 | $.sound.play('/sounds/receive.wav'); |
| 698 | 699 | } | ... | ... |