partial fix for #1754 (pools)

This commit is contained in:
Toks
2013-06-19 11:44:38 -04:00
parent eb02bb1c46
commit 2fdb8f2844
2 changed files with 16 additions and 4 deletions

View File

@@ -26,16 +26,20 @@
},
method: "get",
success: function(data) {
resp($.map(data, function(tag) {
resp($.map(data, function(pool) {
return {
label: tag.name.replace(/_/g, " "),
value: tag.name
label: pool.name.replace(/_/g, " "),
value: pool.name,
category: pool.category
};
}));
}
});
}
});
}).data("autocomplete")._renderItem = function(list, pool) {
var $link = $("<a class='pool-category-" + pool.category + "'></a>").text(pool.label);
return $("<li></li>").data("item.autocomplete", pool).append($link).appendTo(list);
}
$("#pool").click(function(e) {
e.preventDefault();

View File

@@ -8,6 +8,14 @@ a.pool-category-series, span.pool-category-series a {
}
}
a.pool-category-collection, span.pool-category-collection a {
color: $link_color;
&:hover {
color: $link_hover_color;
}
}
div#c-pool-elements {
div#a-new {
font-size: 0.8em;