diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-07-22 09:03:40 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-07-22 09:03:40 +0000 |
commit | f6507e21f87f962c7e7731123450914aa12e227d (patch) | |
tree | 26b415f94a696d8bca9f1232ac6b058d3a6127fa /share/www/script/jquery.editinline.js | |
parent | f4aa228848f8b465ae5ea3088ef02a04051feeac (diff) |
Change document creation in Futon so that it no longer prompts for a document ID, but simply opens the document page for an empty (and unsaved) document, and allows you to modify the ID.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.editinline.js')
-rw-r--r-- | share/www/script/jquery.editinline.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/jquery.editinline.js b/share/www/script/jquery.editinline.js index e677b982..b48607d4 100644 --- a/share/www/script/jquery.editinline.js +++ b/share/www/script/jquery.editinline.js @@ -42,6 +42,11 @@ } } }); + if (options.acceptOnBlur) { + input.blur(function() { + return applyChange(); + }); + } function applyChange(keyCode) { var newText = input.val(); @@ -86,6 +91,7 @@ acceptLabel: "", cancelLabel: "", toolTip: "Double click to edit", + acceptOnBlur: true, // callbacks begin: function() { return true }, |