Skip to content

Commit

Permalink
activate the facet and add hideEmpty attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Oct 23, 2023
1 parent 3b97419 commit c4f5eea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions portality/static/js/edges/public.toc.edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $.extend(true, doaj, {
interval: "month",
display: "Month",
deactivateThreshold: 1,
active: false,
active: true,
displayFormatter : function(val) {
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var mi = (new Date(parseInt(val))).getUTCMonth();
Expand All @@ -120,7 +120,8 @@ $.extend(true, doaj, {
open: false,
togglable: true,
countFormat: countFormat,
hideInactive: true
hideInactive: true,
hideEmpty: true
})
}),

Expand Down

0 comments on commit c4f5eea

Please sign in to comment.