From e05e90e517a4ee6c5a710bf6b289a956b1363cd9 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Mon, 22 Jun 2009 19:10:48 +0000 Subject: 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 --- share/www/script/futon.browse.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'share/www/script/futon.browse.js') 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) { -- cgit v1.2.3