summaryrefslogtreecommitdiff
path: root/share/www/_sidebar.html
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/_sidebar.html')
-rw-r--r--share/www/_sidebar.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/share/www/_sidebar.html b/share/www/_sidebar.html
index 9bddda37..6ef988b9 100644
--- a/share/www/_sidebar.html
+++ b/share/www/_sidebar.html
@@ -18,48 +18,3 @@
<span id="version">?</span>
</div>
</div>
-<script type="text/javascript">
- function updateNavigation(path, queryString) {
- function fixupPath(path) { // hack for IE/Win
- return (path.charAt(0) != "/") ? ("/" + path) : path;
- }
- if (!path) {
- path = location.pathname;
- if (!queryString) {
- queryString = location.search;
- }
- } else if (!queryString) {
- queryString = "";
- }
- var href = fixupPath(path + queryString);
- $("#nav li").removeClass("selected");
- $("#nav li a").each(function() {
- if (fixupPath(this.pathname) + this.search != href) return;
- $(this).parent("li").addClass("selected").parents("li").addClass("selected");
- });
- }
-
- function updateRecentDatabasesList() {
- $("#dbs").empty();
- var recentDbs = $.cookies.get("recent", "").split(",");
- recentDbs.sort();
- $.each(recentDbs, function(idx, name) {
- if (name) {
- $("#dbs").append("<li><a href='database.html?" +
- encodeURIComponent(name) + "'>" + name +
- "</a></li>");
- }
- });
- }
-
- $(function() {
- document.title = "Apache CouchDB - Futon: " + document.title;
- $.couch.info({
- success: function(info, status) {
- $("#version").text(info.version);
- }
- });
- updateRecentDatabasesList();
- updateNavigation();
- });
-</script>