Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New "Invite Chat" link in hit list

  • Loading branch information...
commit cffbd8a54a2ec39315118d6685d64bfbd18fb3fc 1 parent 5853a18
@iambrosi iambrosi authored
View
5 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(
Please sign in to comment.
Something went wrong with that request. Please try again.