X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Freports.tpl;h=feb5800feabb68c4886fa4894ba4b837ebdda175;hb=5f56885676a5004de82919add3d309575514be1b;hp=2f75835d1180b565125333d80552d27fd617b05c;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git
diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl
index 2f75835d..feb5800f 100644
--- a/WEB-INF/templates/reports.tpl
+++ b/WEB-INF/templates/reports.tpl
@@ -133,23 +133,26 @@ function selectAssignedUsers(project_id) {
}
}
-// handleCheckboxes - unmarks and disables the "Totals only" checkbox when
+// handleCheckboxes - unmarks and hides the "Totals only" checkbox when
// "no grouping" is selected in the associated dropdown.
-// In future we need to improve this function and hide not relevant elements completely.
function handleCheckboxes() {
var totalsOnlyCheckbox = document.getElementById("chtotalsonly");
- if ("no_grouping" == document.getElementById("group_by").value) {
+ var totalsOnlyLabel = document.getElementById("totals_only_label");
+ if ("no_grouping" == document.getElementById("group_by1").value) {
// Unmark and disable the "Totals only" checkbox.
totalsOnlyCheckbox.checked = false;
- totalsOnlyCheckbox.disabled = true;
- } else
- totalsOnlyCheckbox.disabled = false;
+ totalsOnlyCheckbox.style.visibility = "hidden";
+ totalsOnlyLabel.style.visibility = "hidden";
+ } else {
+ totalsOnlyCheckbox.style.visibility = "visible";
+ totalsOnlyLabel.style.visibility = "visible";
+ }
}
{$forms.reportForm.open}