|
|
|
@ -97,8 +97,6 @@ $(document).ready(function() { |
|
|
|
|
var chat_id = $(this).attr('rel'); |
|
|
|
|
closeChatBox(chat_id); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
Modernizr.addTest('peerconnection', !!Modernizr.prefixed('RTCPeerConnection', window)); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -374,6 +372,7 @@ function createChatBox(user_id, chatboxtitle, minimizeChatBox, online) { |
|
|
|
|
.addClass('chatboxoptions') |
|
|
|
|
.appendTo(chatboxHead); |
|
|
|
|
|
|
|
|
|
if (!!Modernizr.prefixed('RTCPeerConnection', window)) { |
|
|
|
|
$('<a>') |
|
|
|
|
.addClass('btn btn-xs') |
|
|
|
|
.attr({ |
|
|
|
@ -383,10 +382,6 @@ function createChatBox(user_id, chatboxtitle, minimizeChatBox, online) { |
|
|
|
|
.on('click', function(e) { |
|
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
|
|
if (!Modernizr.peerconnection) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var createForm = $.get( |
|
|
|
|
ajax_url, |
|
|
|
|
{ |
|
|
|
@ -408,6 +403,7 @@ function createChatBox(user_id, chatboxtitle, minimizeChatBox, online) { |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.appendTo(chatboxoptions); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$('<a>') |
|
|
|
|
.addClass('btn btn-xs togglelink') |
|
|
|
|