Permalink
Browse files

New "Invite Chat" link in hit list

  • Loading branch information...
1 parent 5853a18 commit cffbd8a54a2ec39315118d6685d64bfbd18fb3fc @iambrosi iambrosi committed Mar 4, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/ServerGrove/SGLiveChatBundle/Resources/views/Admin/Sessions.js.twig
@@ -117,6 +117,11 @@ var SessionToolkit = {
jQuery(document.createElement('td')).attr({
colspan: 8
}).append(
+ jQuery(document.createElement('a')).attr({href: '#'}).html('Invite Chat').click(function(){
+ window.open('{{path("sglc_chat_invite", {"sessId": "__chatId__"})}}'.replace('__chatId__', item.id), 'livechat' + item.id, 'width=700,height=600,toolbar=no,location=no');
+ return false;
+ })
+ ).append(
jQuery(document.createElement('div')).attr({ // Div created
id: 'visit_' + item.id
}).append(

0 comments on commit cffbd8a

Please sign in to comment.