summaryrefslogtreecommitdiff
path: root/share/www/_sidebar.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-09 18:20:37 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-09 18:20:37 +0000
commite19b5124101f2ff5aa755df99b0fcbd0923aa01f (patch)
treef94bbddb7bdd113b5ee8e2fd00e53375b313daa7 /share/www/_sidebar.html
parent3e0e530cae34bd8d5c9bb45a78923a9bfbc256ca (diff)
Refactoring in Futon to clean up interactions between specific pages and the navigation. Also, switched some graphics over to PNGs with alpha-transparency (screw you IE6), and added a button for removing databases from the recent databases list.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@733104 13f79535-47bb-0310-9956-ffa450edef68
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>