Skip to content

Commit 1a36cd4

Browse files
Revert "DOC-5064 removed unused code and markup"
This reverts commit 14d1400.
1 parent 14d1400 commit 1a36cd4

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

content/develop/clients/jedis/produsage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Each item in the checklist below links to the section
2424
for a recommendation. Use the checklist icons to record your
2525
progress in implementing the recommendations.
2626

27+
[](#client-side-caching)
2728
{{< checklist "prodlist" >}}
2829
{{< checklist-item "#connection-pooling" >}}Connection pooling{{< /checklist-item >}}
2930
{{< checklist-item "#client-side-caching" >}}Client-side caching{{< /checklist-item >}}

layouts/shortcodes/checklist.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,33 @@
2323
clChange("{{ $formId }}");
2424
}
2525
});
26+
27+
/*
28+
function clChange(formId) {
29+
let form = document.getElementById(formId);
30+
let counts = {R: 0, G: 0, A: 0, X:0};
31+
32+
let listItems = form.getElementsByTagName("li");
33+
34+
for (let elem of listItems) {
35+
let menu = elem.getElementsByTagName("select")[0];
36+
let mvalue = menu.value;
37+
38+
counts[mvalue]++;
39+
}
40+
41+
form.elements["rcount"].value = counts["R"];
42+
form.elements["gcount"].value = counts["G"];
43+
form.elements["acount"].value = counts["A"];
44+
form.elements["xcount"].value = counts["X"];
45+
46+
let numClItems = listItems.length - counts["X"];
47+
form.elements["rtotal"].value = numClItems;
48+
form.elements["gtotal"].value = numClItems;
49+
form.elements["atotal"].value = numClItems;
50+
form.elements["xtotal"].value = listItems.length;
51+
}
52+
*/
2653

2754

2855
function getStringFromCLItems(formId) {

0 commit comments

Comments
 (0)