提交 4d6a7379 编写于 作者: V Veljko Tornjanski

Merge pull request #69 from TornjV/fix/caret

Change caret direction
......@@ -241,11 +241,11 @@ $.getJSON('./algorithm/category.json', function (data) {
for (var category in list) {
(function (category) {
var $category = $('<button class="category">')
.append('<i class="fa fa-fw fa-caret-down">')
.append('<i class="fa fa-fw fa-caret-right">')
.append(list[category].name);
$category.click(function () {
$('[data-category="' + category + '"]').toggleClass('collapse');
$(this).find('i.fa').toggleClass('fa-caret-down fa-caret-right');
$(this).find('i.fa').toggleClass('fa-caret-right fa-caret-down');
});
$('#list').append($category);
var subList = list[category].list;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册