Skip to content
Snippets Groups Projects
Commit d271694d authored by Dixon Fred's avatar Dixon Fred Committed by GitHub
Browse files

Merge pull request #3604 from alexandrekreis/master

In recording playback, chat links open in a new tab
parents 382573a2 b19ce7f7
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,14 @@
// Default to empty if not used
//options.innerHTML = options.innerHTML || "";
//If chat message contains a link, we add to it a target attribute
//So when the user clicks on it, it opens in a new tab
if($(options.message).attr('href')) {
var tempHtml = $('<div/>',{html:options.message});
$(tempHtml).find('a').attr("target","_blank");
options.message = tempHtml.html();
}
contentDiv.innerHTML = "<strong>" + options.name + ":</strong>" + options.message;
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment