Webtrice set targets (#2439)
This commit is contained in:
parent
18b8a0ef5c
commit
12539026c5
1 changed files with 7 additions and 3 deletions
|
@ -141,8 +141,13 @@ Loading cockatrice web client...
|
||||||
$(div).find("[href]").each(function() {
|
$(div).find("[href]").each(function() {
|
||||||
var attributeValue = $(this).attr('href');
|
var attributeValue = $(this).attr('href');
|
||||||
for(var protocol in hrefWhitelist)
|
for(var protocol in hrefWhitelist)
|
||||||
|
{
|
||||||
if(attributeValue.indexOf(hrefWhitelist[protocol]) == 0)
|
if(attributeValue.indexOf(hrefWhitelist[protocol]) == 0)
|
||||||
|
{
|
||||||
|
$(this).attr('target', '_blank');
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$(this).removeAttr('href');
|
$(this).removeAttr('href');
|
||||||
});
|
});
|
||||||
|
@ -311,7 +316,6 @@ Loading cockatrice web client...
|
||||||
|
|
||||||
$('#buddies').empty();
|
$('#buddies').empty();
|
||||||
$.each(data.buddyList, function(key, value) {
|
$.each(data.buddyList, function(key, value) {
|
||||||
debugger;
|
|
||||||
$('#buddies').append('<li>' + value.name + '</li>');
|
$('#buddies').append('<li>' + value.name + '</li>');
|
||||||
});
|
});
|
||||||
$("#buddies").selectable();
|
$("#buddies").selectable();
|
||||||
|
|
Loading…
Reference in a new issue