partial fix for #1754 (pools)
This commit is contained in:
@@ -26,16 +26,20 @@
|
|||||||
},
|
},
|
||||||
method: "get",
|
method: "get",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
resp($.map(data, function(tag) {
|
resp($.map(data, function(pool) {
|
||||||
return {
|
return {
|
||||||
label: tag.name.replace(/_/g, " "),
|
label: pool.name.replace(/_/g, " "),
|
||||||
value: tag.name
|
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) {
|
$("#pool").click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
@@ -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#c-pool-elements {
|
||||||
div#a-new {
|
div#a-new {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|||||||
Reference in New Issue
Block a user