diff options
author | Adam Kocoloski <adam@cloudant.com> | 2011-08-15 15:45:15 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2011-08-15 15:45:15 -0400 |
commit | 6ffe1675dd7b004e48891956a6bdbe32899ce80c (patch) | |
tree | 57326d9a498481e65bb0db38c66daf10896801f1 /rel/overlay/share/www/script/futon.browse.js | |
parent | 52ff89ff7996e839b9e2f91fd76184d362a8aeb0 (diff) | |
parent | fdd1a5d0bc48b49b0df5c9217beff9574011283c (diff) |
Merge branch '11554-merge-couchdb-1.1'
Diffstat (limited to 'rel/overlay/share/www/script/futon.browse.js')
-rw-r--r-- | rel/overlay/share/www/script/futon.browse.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/rel/overlay/share/www/script/futon.browse.js b/rel/overlay/share/www/script/futon.browse.js index a3f6e8cb..b981feec 100644 --- a/rel/overlay/share/www/script/futon.browse.js +++ b/rel/overlay/share/www/script/futon.browse.js @@ -682,10 +682,12 @@ key = $.futon.formatJSON(row.key, {indent: 0, linesep: ""}); } if (row.id) { - $("<td class='key'><a href='document.html?" + encodeURIComponent(db.name) + - "/" + $.couch.encodeDocId(row.id) + "'><strong></strong><br>" + - "<span class='docid'>ID: " + $.futon.escape(row.id) + "</span></a></td>") - .find("strong").text(key).end() + key = key.replace(/\\"/, '"'); + var rowlink = encodeURIComponent(db.name) + + "/" + $.couch.encodeDocId(row.id); + $("<td class='key'><a href=\"document.html?" + rowlink + "\"><strong>" + + $.futon.escape(key) + "</strong><br>" + + "<span class='docid'>ID: " + $.futon.escape(row.id) + "</span></a></td>") .appendTo(tr); } else { $("<td class='key'><strong></strong></td>") |