- if ("no_grouping" == document.getElementById("group_by").value) {
- // Unmark and disable the "Totals only" checkbox.
+ var totalsOnlyLabel = document.getElementById("totals_only_label");
+ var groupBy1 = document.getElementById("group_by1");
+ var groupBy2 = document.getElementById("group_by2");
+ var groupBy3 = document.getElementById("group_by3");
+ var grouping = false;
+ if ((groupBy1 != null && "no_grouping" != groupBy1.value) ||
+ (groupBy2 != null && "no_grouping" != groupBy2.value) ||
+ (groupBy3 != null && "no_grouping" != groupBy3.value)) {
+ grouping = true;
+ }
+ if (grouping) {
+ // Show the "Totals only" checkbox.
+ totalsOnlyCheckbox.style.visibility = "visible";
+ totalsOnlyLabel.style.visibility = "visible";
+ } else {
+ // Unmark and hide the "Totals only" checkbox.