diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-07-21 21:06:00 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-07-21 21:06:00 +0000 |
commit | f2a91f36366d270b59d208712e59cf32533006be (patch) | |
tree | 703b3c29bf79b646bf89b316fa2525cac68336c3 /share/www/script/futon.browse.js | |
parent | faa5479e472356770a8cda116defd002d88b20d6 (diff) |
Make the view-selection and jump-to-document widgets at the top of the Futon database page a bit more compact.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.browse.js')
-rw-r--r-- | share/www/script/futon.browse.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 9bf01752..6aeb14f3 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -466,10 +466,10 @@ } } - this.jumpToDocument = function(e) { - if (e.which == 13) { - var docid = $('#jumpto input').val(); - location.href = 'document.html?' + encodeURIComponent(db.name) + '/' + encodeDocId(docid); + this.jumpToDocument = function(docId) { + if (docId != "") { + location.href = 'document.html?' + encodeURIComponent(db.name) + + "/" + encodeDocId(docId); } } |