summaryrefslogtreecommitdiff
path: root/share/www/document.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-13 10:18:15 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-13 10:18:15 +0000
commita4b645ec236b260e7dca50a5172c64afe2f07d56 (patch)
tree0f223b132c52290d5dc7221b62988b75be2e66c6 /share/www/document.html
parente682127ca50b7a1e9a0643412a9e89cfabd5b7a6 (diff)
As a follow-up to r733462, instead of making the last part of the breadcrumb a link to the raw JSON doc, add a little arrow thingy at the right side of the navigation bar for the same purpose, and also make it work for views from the database page.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/document.html')
-rw-r--r--share/www/document.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/www/document.html b/share/www/document.html
index 5e8831ce..922a651a 100644
--- a/share/www/document.html
+++ b/share/www/document.html
@@ -42,8 +42,9 @@ specific language governing permissions and limitations under the License.
$(function() {
$("h1 a.dbname").text(page.dbName)
.attr("href", "database.html?" + encodeURIComponent(page.db.name));
- $("h1 strong").html('<a href="/'+encodeURIComponent(page.db.name)
- +'/'+encodeURIComponent(page.docId)+'>'+page.docId+'</a>');
+ $("h1 strong").text(page.docId);
+ $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) +
+ "/" + encodeURIComponent(page.docId));
page.updateFieldListing();
$("#tabs li.tabular a").click(page.activateTabularView);
@@ -62,6 +63,7 @@ specific language governing permissions and limitations under the License.
<a href="index.html">Overview</a>
<a class="dbname" href="#">?</a>
<strong>?</strong>
+ <a class="raw" title="Raw document"></a>
</h1>
<div id="content">
<ul id="toolbar">