File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
content/develop/clients/jedis Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Each item in the checklist below links to the section
2424for a recommendation. Use the checklist icons to record your
2525progress 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 >}}
Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments