From f6507e21f87f962c7e7731123450914aa12e227d Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Wed, 22 Jul 2009 09:03:40 +0000 Subject: 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 --- share/Makefile.am | 1 - share/www/database.html | 8 +-- share/www/dialog/_create_document.html | 31 ----------- share/www/document.html | 10 ++-- share/www/script/futon.browse.js | 98 +++++++++++++++++++--------------- share/www/script/jquery.couch.js | 18 +++++++ share/www/script/jquery.editinline.js | 6 +++ share/www/style/layout.css | 2 +- 8 files changed, 90 insertions(+), 84 deletions(-) delete mode 100644 share/www/dialog/_create_document.html diff --git a/share/Makefile.am b/share/Makefile.am index d1cdb457..16fe247d 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -34,7 +34,6 @@ EXTRA_DIST = $(JS_FILE_COMPONENTS) $(JS_FILE_COMPONENTS_LAST) nobase_dist_localdata_DATA = \ $(JS_FILE) \ www/dialog/_compact_database.html \ - www/dialog/_create_document.html \ www/dialog/_create_database.html \ www/dialog/_delete_database.html \ www/dialog/_delete_document.html \ diff --git a/share/www/database.html b/share/www/database.html index b94b1e93..9b22cf76 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -99,7 +99,7 @@ specific language governing permissions and limitations under the License. page.updateDocumentListing(); $.cookies.set(page.db.name + ".perpage", this.value); }); - $("#toolbar button.add").click(page.addDocument); + $("#toolbar button.add").click(page.newDocument); $("#toolbar button.compact").click(page.compactDatabase); $("#toolbar button.delete").click(page.deleteDatabase); @@ -145,9 +145,9 @@ specific language governing permissions and limitations under the License.