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/document.html | |
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/document.html')
-rw-r--r-- | share/www/document.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/share/www/document.html b/share/www/document.html index c13c745c..f3dcf326 100644 --- a/share/www/document.html +++ b/share/www/document.html @@ -54,7 +54,11 @@ specific language governing permissions and limitations under the License. $("#toolbar button.save").click(page.saveDocument); $("#toolbar button.add").click(page.addField); $("#toolbar button.load").click(page.uploadAttachment); - $("#toolbar button.delete").click(page.deleteDocument); + if (page.isNew) { + $("#toolbar button.delete").hide(); + } else { + $("#toolbar button.delete").click(page.deleteDocument); + } }); </script> </head> @@ -70,8 +74,8 @@ specific language governing permissions and limitations under the License. <ul id="toolbar"> <li><button class="save">Save Document</button></li> <li><button class="add">Add Field</button></li> - <li><button class="load">Upload Attachment</button></li> - <li><button class="delete">Delete Document</button></li> + <li><button class="load">Upload Attachment…</button></li> + <li><button class="delete">Delete Document…</button></li> </ul> <ul id="tabs"> |