projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix unapplied payment report, RT#73048, fallout from #25944
[freeside.git]
/
httemplate
/
search
/
elements
/
checkbox-foot.html
diff --git
a/httemplate/search/elements/checkbox-foot.html
b/httemplate/search/elements/checkbox-foot.html
index
c470094
..
ae8b794
100644
(file)
--- a/
httemplate/search/elements/checkbox-foot.html
+++ b/
httemplate/search/elements/checkbox-foot.html
@@
-11,6
+11,7
@@
},
],
filter => '.name = "pkgpart"', # see below
},
],
filter => '.name = "pkgpart"', # see below
+ minboxes => 2, #will remove checkboxes if there aren't at least this many
),
&>
),
&>
@@
-67,6
+68,14
@@
for (var i = 0; i < inputs.length; i++) {
}
}
%# avoid the need for "$areboxes" late-evaluation hackery
}
}
%# avoid the need for "$areboxes" late-evaluation hackery
+% if ($opt{'minboxes'}) {
+if ( checkboxes.length < <% $opt{'minboxes'} %> ) {
+ for (i = 0; i < checkboxes.length; i++) {
+ checkboxes[i].parentNode.removeChild(checkboxes[i]);
+ }
+ checkboxes = [];
+}
+% }
if ( checkboxes.length == 0 ) {
document.getElementById('checkbox_footer').style.display = 'none';
}
if ( checkboxes.length == 0 ) {
document.getElementById('checkbox_footer').style.display = 'none';
}