mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-10-02 14:00:08 -05:00
Webtrice set targets (#2439)
This commit is contained in:
@@ -141,8 +141,13 @@ Loading cockatrice web client...
|
||||
$(div).find("[href]").each(function() {
|
||||
var attributeValue = $(this).attr('href');
|
||||
for(var protocol in hrefWhitelist)
|
||||
if(attributeValue.indexOf(hrefWhitelist[protocol]) == 0)
|
||||
return;
|
||||
{
|
||||
if(attributeValue.indexOf(hrefWhitelist[protocol]) == 0)
|
||||
{
|
||||
$(this).attr('target', '_blank');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$(this).removeAttr('href');
|
||||
});
|
||||
@@ -311,7 +316,6 @@ Loading cockatrice web client...
|
||||
|
||||
$('#buddies').empty();
|
||||
$.each(data.buddyList, function(key, value) {
|
||||
debugger;
|
||||
$('#buddies').append('<li>' + value.name + '</li>');
|
||||
});
|
||||
$("#buddies").selectable();
|
||||
|
||||
Reference in New Issue
Block a user