diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/futon.browse.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 6b3c979c..56435ae4 100644 --- a/share/www/script/futon.browse.js +++ b/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>") |