Continue refactoring, tweak sban
This commit is contained in:
parent
30c5f67d4d
commit
b6f4702570
6 changed files with 71 additions and 26 deletions
|
|
@ -82,7 +82,8 @@ function formatUserlistItem(div) {
|
|||
name: div.data("name") || "",
|
||||
rank: div.data("rank"),
|
||||
profile: div.data("profile") || { image: "", text: ""},
|
||||
leader: div.data("leader") || false
|
||||
leader: div.data("leader") || false,
|
||||
icon: div.data("icon") || false
|
||||
};
|
||||
var name = $(div.children()[1]);
|
||||
name.removeClass();
|
||||
|
|
@ -125,8 +126,8 @@ function formatUserlistItem(div) {
|
|||
name.css("font-style", "italic");
|
||||
$("<i/>").addClass("icon-time").appendTo(flair);
|
||||
}
|
||||
if(data.meta && data.meta.icon) {
|
||||
$("<i/>").addClass(data.meta.icon).prependTo(flair);
|
||||
if (data.icon) {
|
||||
$("<i/>").addClass(data.icon).prependTo(flair);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue