projects
/
MojoFacets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update $checked in facet code eval
[MojoFacets.git]
/
templates
/
data
/
facet.html.ep
diff --git
a/templates/data/facet.html.ep
b/templates/data/facet.html.ep
index
3a4cc0a
..
20b91da
100644
(file)
--- a/
templates/data/facet.html.ep
+++ b/
templates/data/facet.html.ep
@@
-62,6
+62,7
@@
Eval code on each facet <tt>$value</tt> and <tt>$count</tt>
<pre>
$out->{sum} += $value * $count;
$out->{sum}->{ $checked ? 'on' : 'off' } += $count;
+$checked = 1 if $count > 10;
</pre>
</div>
% if ( my $out = stash('out') ) {