Always show article category headers (do not unlist them on list.js search)

This commit is contained in:
Julius 2013-09-22 22:04:29 +02:00
parent 891293af84
commit 6ec81ace18
3 changed files with 6 additions and 6 deletions

View File

@ -136,9 +136,9 @@ List.prototype.templateEngines.unlist = function(list, settings) {
$(item.elm).removeClass('unlisted'); $(item.elm).removeClass('unlisted');
}; };
this.hide = function(item) { this.hide = function(item) {
if (item.elm !== undefined) { ensure.created(item);
$(item.elm).addClass('unlisted'); $(item.elm).addClass('unlisted');
} listSource.appendChild(item.elm);
}; };
this.clear = function() { this.clear = function() {
$(listSource.childNodes).addClass('unlisted'); $(listSource.childNodes).addClass('unlisted');

View File

@ -1,3 +1,3 @@
.list .unlisted { .list .unlisted:not(.no-unlist) {
display: none; display: none;
} }

View File

@ -67,8 +67,8 @@
%th{style: "width:15px;"}= t '.sum' %th{style: "width:15px;"}= t '.sum'
%tbody.list %tbody.list
- @order.articles_grouped_by_category.each do |category, order_articles| - @order.articles_grouped_by_category.each do |category, order_articles|
%tr.article-category %tr.no-unlist.article-category
%td.name %td
= category = category
%i.icon-tag %i.icon-tag
%td{colspan: "9"} %td{colspan: "9"}