Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

New "Invite Chat" link in hit list

  • Loading branch information...
commit cffbd8a54a2ec39315118d6685d64bfbd18fb3fc 1 parent 5853a18
Ismael Ambrosi iambrosi authored
5 src/ServerGrove/SGLiveChatBundle/Resources/views/Admin/Sessions.js.twig
@@ -117,6 +117,11 @@ var SessionToolkit = {
117 117 jQuery(document.createElement('td')).attr({
118 118 colspan: 8
119 119 }).append(
  120 + jQuery(document.createElement('a')).attr({href: '#'}).html('Invite Chat').click(function(){
  121 + window.open('{{path("sglc_chat_invite", {"sessId": "__chatId__"})}}'.replace('__chatId__', item.id), 'livechat' + item.id, 'width=700,height=600,toolbar=no,location=no');
  122 + return false;
  123 + })
  124 + ).append(
120 125 jQuery(document.createElement('div')).attr({ // Div created
121 126 id: 'visit_' + item.id
122 127 }).append(

0 comments on commit cffbd8a

Please sign in to comment.
Something went wrong with that request. Please try again.