diff options
Diffstat (limited to '_released_docs/r3.8.1/apidocs/zookeeper-server/script.js')
-rw-r--r-- | _released_docs/r3.8.1/apidocs/zookeeper-server/script.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/_released_docs/r3.8.1/apidocs/zookeeper-server/script.js b/_released_docs/r3.8.1/apidocs/zookeeper-server/script.js new file mode 100644 index 000000000..b34635693 --- /dev/null +++ b/_released_docs/r3.8.1/apidocs/zookeeper-server/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>"; + } + } +} |