diff options
author | Damien F. Katz <damien@apache.org> | 2009-06-22 19:10:48 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-06-22 19:10:48 +0000 |
commit | e05e90e517a4ee6c5a710bf6b289a956b1363cd9 (patch) | |
tree | 8e137f546ee04ebeb98065a8532d32a05b5ade35 /share/www/script | |
parent | c6b388eeeac6517eb649d8b8d04874902836a39e (diff) |
Added 'Jump to Document' in the database.htmlscreen. Would like maybe to see in the future about making it limit input to only existing doc ids, and perhaps only show on the 'All documents' view.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@787354 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r-- | share/www/script/futon.browse.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index a360a343..e518c9ab 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -466,6 +466,13 @@ } } + this.jumpToDocument = function(e) { + if (e.which == 13) { + var docid = $('#jumpto input').val(); + location.href = 'document.html?' + encodeURIComponent(db.name) + '/' + encodeDocId(docid); + } + } + this.updateDocumentListing = function(options) { if (options === undefined) options = {}; if (options.limit === undefined) { |