summaryrefslogtreecommitdiff
path: root/share/www/script/futon.browse.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r--share/www/script/futon.browse.js7
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) {