diff options
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) { |