couchdb-jquery-couch.git
2 years agoFix HTTP Accept header for list query master 5/head
Iblis Lin [Thu, 12 May 2016 12:31:10 +0000 (20:31 +0800)] 
Fix HTTP Accept header for list query

Given following list function
```
function(head, req) {
  provides('text', function(){
    start({
      'headers': {
        'Content-Type': 'text/plain'
      }
    });
    send('Hello list!');
  });
}
```

It will get HTTP 406 error, because the default
Accept header is set to `application/json`.

See Also: couchapp/couchapp#234

4 years agoFix broken key options 3/head
Robert Kowalski [Sun, 9 Nov 2014 15:06:51 +0000 (16:06 +0100)] 
Fix broken key options

noticed while porting the tests

4 years agoPort old JS Spec tests to Mocha
Robert Kowalski [Sun, 9 Nov 2014 15:05:44 +0000 (16:05 +0100)] 
Port old JS Spec tests to Mocha

Changes that happened to jquery.couch.js which were not
reflected by the current failing JSpec Testsuite and
required changes to the testuite:

 - jquery.couch returns the time for the request and not an
   object with an url property
 - jquery.couch does not show alerts any more
 - success callbacks don't return a status any more
 - db.copyDoc expects an docid as target in the first option object,
   not a third parameter with an `Destination` property

COUCHDB-1566

4 years agoFix document copying
Alexander Shorin [Wed, 29 Oct 2014 16:01:17 +0000 (19:01 +0300)] 
Fix document copying

To COPY a doc the client must specify the target doc id in Destination
header. Additionally, it may add the revision parameter if document
already exists and we want to copy over it.

4 years agoAdd complete for login, and use code style of the lib
Robert Kowalski [Mon, 16 Jun 2014 20:08:38 +0000 (22:08 +0200)] 
Add complete for login, and use code style of the lib

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoFixed broken complete callback for login
Mike McKay [Tue, 7 Aug 2012 22:10:06 +0000 (18:10 -0400)] 
Fixed broken complete callback for login

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd first set of red tests
Robert Kowalski [Mon, 16 Jun 2014 19:55:53 +0000 (21:55 +0200)] 
Add first set of red tests

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd sinon@1.10.2
Robert Kowalski [Mon, 16 Jun 2014 20:14:00 +0000 (22:14 +0200)] 
Add sinon@1.10.2

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd dependencies
Robert Kowalski [Mon, 16 Jun 2014 20:49:36 +0000 (22:49 +0200)] 
Add dependencies

they are managed with bower, except sinon. there is no browser
build on bower for sinon and also no one on npm so far. in the
future they want to use browserify

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd bower.json
Robert Kowalski [Mon, 16 Jun 2014 20:13:14 +0000 (22:13 +0200)] 
Add bower.json

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd LICENSE file
Robert Kowalski [Mon, 16 Jun 2014 18:56:32 +0000 (20:56 +0200)] 
Add LICENSE file

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd README.md
Robert Kowalski [Mon, 16 Jun 2014 20:54:46 +0000 (22:54 +0200)] 
Add README.md

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoMore deferred support to jquery.couch.js import-master
Dale Harvey [Tue, 11 Mar 2014 11:16:13 +0000 (15:16 +0400)] 
More deferred support to jquery.couch.js

COUCHDB-1180

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoAdd deferred support to jquery.couch.js
telis94 [Tue, 11 Mar 2014 11:15:48 +0000 (15:15 +0400)] 
Add deferred support to jquery.couch.js

COUCHDB-1036 COUCHDB-1180

This closes #169

Signed-off-by: Alexander Shorin <kxepal@apache.org>
4 years agoremove superfluous 'user_doc.type'
Robert Kowalski [Sun, 16 Feb 2014 20:37:44 +0000 (21:37 +0100)] 
remove superfluous 'user_doc.type'

Fixes COUCHDB-1474

5 years agojquery.couch.js: db.changes().stop() should abort XMLHTTPRequest
Fedor Indutny [Tue, 10 Dec 2013 13:29:16 +0000 (17:29 +0400)] 
jquery.couch.js: db.changes().stop() should abort XMLHTTPRequest

5 years agoFix compatibility with jQuery 1.9+
Alexander Shorin [Sun, 8 Dec 2013 16:32:53 +0000 (20:32 +0400)] 
Fix compatibility with jQuery 1.9+

$.browser is gone there, but still we have to disable cache for MSIE.

COUCHDB-1668

5 years agoUpdate jquery.couch docstrings. Fix few typos.
Alexander Shorin [Sun, 8 Dec 2013 14:36:59 +0000 (18:36 +0400)] 
Update jquery.couch docstrings. Fix few typos.

References to CouchBase docs were broken anyway.

6 years agoMerged pull request #7 from @mikeymckay, with thanks
Mike McKay [Thu, 1 Nov 2012 00:46:24 +0000 (01:46 +0100)] 
Merged pull request #7 from @mikeymckay, with thanks

6 years agoUse ajax helper function for _session GET request to stop request cache in IE7
Ewan McDougall [Thu, 7 Jun 2012 11:34:54 +0000 (13:34 +0200)] 
Use ajax helper function for _session GET request to stop request cache in IE7

6 years agoCOUCHDB-1381 - Don't call alert() from jquery.couch.js
Sam Bisbee [Sat, 18 Feb 2012 15:20:36 +0000 (15:20 +0000)] 
COUCHDB-1381 - Don't call alert() from jquery.couch.js

jquery.couch.js is a javascript library and should not assume it's
running inside a browser. Particularly, it should not call
alert(). Instead it should throw an exception.

7 years agoFix admin users creation and user password change in futon.
benoitc [Sat, 3 Dec 2011 05:13:34 +0000 (06:13 +0100)] 
Fix admin users creation and user password change in futon.

main patch from jan, reviewed & updated by me.

7 years agoAdd view request duration to Futon
Filipe David Borba Manana [Sat, 5 Nov 2011 14:55:55 +0000 (14:55 +0000)] 
Add view request duration to Futon

Closes COUCHDB-509

7 years agoCOUCHDB-1156 - send Accept header so Futon doesn't display HTML where it expects...
Robert Newson [Wed, 11 May 2011 08:45:54 +0000 (08:45 +0000)] 
COUCHDB-1156 - send Accept header so Futon doesn't display HTML where it expects JSON (Thanks Dale Harvey for patch)

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1101786 13f79535-47bb-0310-9956-ffa450edef68

7 years agoSimplify JSON parsing calls.
Jason David Davies [Sun, 17 Apr 2011 18:22:42 +0000 (18:22 +0000)] 
Simplify JSON parsing calls.

Thanks to @brainsatwork for the suggestion.  Instead of carrying around a lump
of legacy jQuery 1.4.x $.httpData code, I've simply called $.parseJSON directly.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094181 13f79535-47bb-0310-9956-ffa450edef68

7 years agofix reference
Jan Lehnardt [Sat, 16 Apr 2011 22:47:15 +0000 (22:47 +0000)] 
fix reference

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094080 13f79535-47bb-0310-9956-ffa450edef68

7 years agoNote to self: Test before commit.
Jan Lehnardt [Sat, 16 Apr 2011 22:42:19 +0000 (22:42 +0000)] 
Note to self: Test before commit.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094078 13f79535-47bb-0310-9956-ffa450edef68

7 years agoMake prepareUserDoc a public method.
Jan Lehnardt [Sat, 16 Apr 2011 22:36:36 +0000 (22:36 +0000)] 
Make prepareUserDoc a public method.

Closes COUCHDB-1014

Patch by Benjamin Young.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094076 13f79535-47bb-0310-9956-ffa450edef68

7 years agoallow passing of ajax options to $.couch.list()
Jan Lehnardt [Sat, 16 Apr 2011 20:40:12 +0000 (20:40 +0000)] 
allow passing of ajax options to $.couch.list()

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094049 13f79535-47bb-0310-9956-ffa450edef68

7 years agoAdd inline documentation for jquery.couch.js
Jan Lehnardt [Sat, 16 Apr 2011 19:32:26 +0000 (19:32 +0000)] 
Add inline documentation for jquery.couch.js

Closes COUCHDB-1116

Patch by Dale Harvey.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094035 13f79535-47bb-0310-9956-ffa450edef68

7 years agoDon't expect a 202 repsponse code when cancelling a replication.
Jan Lehnardt [Sat, 16 Apr 2011 18:29:03 +0000 (18:29 +0000)] 
Don't expect a 202 repsponse code when cancelling a replication.

Closes COUCHDB-1016

Patch by Felix Hummel.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094024 13f79535-47bb-0310-9956-ffa450edef68

7 years agoOnly accept application/json from jquery.couch.js
Robert Newson [Sun, 13 Feb 2011 19:17:22 +0000 (19:17 +0000)] 
Only accept application/json from jquery.couch.js

Since Filipe's fix for parsing the accepted content types at r1041103, returns from
$.ajax could return a 302 that redirects to an HTML page. Functions like activeTasks()
expect JSON and barf when fed HTML.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1070279 13f79535-47bb-0310-9956-ffa450edef68

7 years agoMake compatible with jQuery 1.5.x
Jason David Davies [Sat, 5 Feb 2011 10:37:31 +0000 (10:37 +0000)] 
Make compatible with jQuery 1.5.x

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1067420 13f79535-47bb-0310-9956-ffa450edef68

8 years agoJavaScript test suite: adding more semi-collons where necessary to assure compatibili...
Filipe David Borba Manana [Fri, 17 Sep 2010 12:07:04 +0000 (12:07 +0000)] 
JavaScript test suite: adding more semi-collons where necessary to assure compatibility with Chrome and Safari.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@998090 13f79535-47bb-0310-9956-ffa450edef68

8 years agoMake the simple document versioning actually work. I have no idea how it passed my...
John Christopher Anderson [Fri, 23 Jul 2010 04:17:38 +0000 (04:17 +0000)] 
Make the simple document versioning actually work. I have no idea how it passed my earlier tests, maybe there was a regression.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@966957 13f79535-47bb-0310-9956-ffa450edef68

8 years agouse json as the default content-type for requests from jquery.couch.js
John Christopher Anderson [Thu, 8 Jul 2010 18:09:20 +0000 (18:09 +0000)] 
use json as the default content-type for requests from jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@961854 13f79535-47bb-0310-9956-ffa450edef68

8 years agofix jquery.couch.js replicate options
John Christopher Anderson [Sat, 3 Jul 2010 01:24:12 +0000 (01:24 +0000)] 
fix jquery.couch.js replicate options

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@960148 13f79535-47bb-0310-9956-ffa450edef68

8 years agomake jquery.couch.js changes handling more robust
John Christopher Anderson [Wed, 23 Jun 2010 22:26:21 +0000 (22:26 +0000)] 
make jquery.couch.js changes handling more robust

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957380 13f79535-47bb-0310-9956-ffa450edef68

8 years agojquery.couch.js changes options handling
John Christopher Anderson [Sat, 19 Jun 2010 20:01:47 +0000 (20:01 +0000)] 
jquery.couch.js changes options handling

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@956282 13f79535-47bb-0310-9956-ffa450edef68

8 years agojquery.couch.js works with PUT to delete.
John Christopher Anderson [Thu, 17 Jun 2010 23:17:15 +0000 (23:17 +0000)] 
jquery.couch.js works with PUT to delete.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955782 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadd continuous replication support to Futon
John Christopher Anderson [Wed, 16 Jun 2010 16:36:04 +0000 (16:36 +0000)] 
add continuous replication support to Futon

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955290 13f79535-47bb-0310-9956-ffa450edef68

8 years agojquery.couch.js uses a cache-buster when the browser is msie
John Christopher Anderson [Tue, 15 Jun 2010 00:07:14 +0000 (00:07 +0000)] 
jquery.couch.js uses a cache-buster when the browser is msie

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@954677 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadd changes handler to jquery.couch.js
John Christopher Anderson [Mon, 14 Jun 2010 17:13:19 +0000 (17:13 +0000)] 
add changes handler to jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@954560 13f79535-47bb-0310-9956-ffa450edef68

8 years agotypo
Jan Lehnardt [Wed, 2 Jun 2010 18:09:25 +0000 (18:09 +0000)] 
typo

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950695 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdd tests for couch.js and jquery.couch.js
Jan Lehnardt [Wed, 2 Jun 2010 17:45:56 +0000 (17:45 +0000)] 
Add tests for couch.js and jquery.couch.js

Patch by Lena Herrmann.

Closes COUCHDB-783.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950689 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAdd support for multi-document-fetch (via _all_docs) to jquery.couch.js.
Jason David Davies [Thu, 27 May 2010 23:00:09 +0000 (23:00 +0000)] 
Add support for multi-document-fetch (via _all_docs) to jquery.couch.js.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949037 13f79535-47bb-0310-9956-ffa450edef68

8 years agoFix some bugs in jquery.couch.js.
Jason David Davies [Thu, 27 May 2010 22:37:58 +0000 (22:37 +0000)] 
Fix some bugs in jquery.couch.js.

Namely:

 * openDoc() was inadvertently adding a ?beforeSuccess=... parameter to
   the URL.
 * bulkSave() wasn't sending a POST body.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@949028 13f79535-47bb-0310-9956-ffa450edef68

8 years agouse a smaller rev token for attachment versions, thanks for the suggestion Damien
John Christopher Anderson [Wed, 26 May 2010 00:53:43 +0000 (00:53 +0000)] 
use a smaller rev token for attachment versions, thanks for the suggestion Damien

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948282 13f79535-47bb-0310-9956-ffa450edef68

8 years agoadd attachment versioning support to jquery.couch.js
John Christopher Anderson [Wed, 26 May 2010 00:08:42 +0000 (00:08 +0000)] 
add attachment versioning support to jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@948262 13f79535-47bb-0310-9956-ffa450edef68

8 years agoCheck for undefined options. Patch by Filipe Manana. Closes COUCHDB-774.
Jan Lehnardt [Sat, 22 May 2010 21:28:54 +0000 (21:28 +0000)] 
Check for undefined options. Patch by Filipe Manana. Closes COUCHDB-774.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@947336 13f79535-47bb-0310-9956-ffa450edef68

8 years agojquery.couch.js option to force ensure_full_commit to true or false
John Christopher Anderson [Sat, 15 May 2010 05:08:25 +0000 (05:08 +0000)] 
jquery.couch.js option to force ensure_full_commit to true or false

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@944570 13f79535-47bb-0310-9956-ffa450edef68

8 years agolist functionality for jquery.couch.js
John Christopher Anderson [Thu, 29 Apr 2010 18:33:37 +0000 (18:33 +0000)] 
list functionality for jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@939443 13f79535-47bb-0310-9956-ffa450edef68

8 years agomake uuuidCache a local variable. Patch by Jan Kassens. Closes COUCHDB-560.
Jan Lehnardt [Tue, 2 Feb 2010 00:53:54 +0000 (00:53 +0000)] 
make uuuidCache a local variable. Patch by Jan Kassens. Closes COUCHDB-560.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905483 13f79535-47bb-0310-9956-ffa450edef68

8 years agoDatabase-level security.
John Christopher Anderson [Mon, 1 Feb 2010 22:51:15 +0000 (22:51 +0000)] 
Database-level security.

This patch builds on the DB-admins feature to store lists of database admin and reader names and roles, as well as a security object which can be used for configuration in validation functions.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905436 13f79535-47bb-0310-9956-ffa450edef68

8 years agofix bulkSave(). Patch insipred by Lena Herrmann. Closes COUCHDB-634
Jan Lehnardt [Sun, 31 Jan 2010 21:16:19 +0000 (21:16 +0000)] 
fix bulkSave(). Patch insipred by Lena Herrmann. Closes COUCHDB-634

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905121 13f79535-47bb-0310-9956-ffa450edef68

8 years agoAllow Futon to run behind a HTTP proxy.
Jan Lehnardt [Sat, 30 Jan 2010 01:22:36 +0000 (01:22 +0000)] 
Allow Futon to run behind a HTTP proxy.

Depending no the Proxy's RFC 2616 compliance,
some tests might fail (looking at you, nginx).

Patch by Jack Moffit and Damjan Georgievski.

Closes COUCHDB-321.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904705 13f79535-47bb-0310-9956-ffa450edef68

9 years agonormalize userCtx name and roles, also, no log in via a conflict doc
John Christopher Anderson [Mon, 18 Jan 2010 03:45:54 +0000 (03:45 +0000)] 
normalize userCtx name and roles, also, no log in via a conflict doc

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@900275 13f79535-47bb-0310-9956-ffa450edef68

9 years agomerge account branch to trunk
John Christopher Anderson [Thu, 7 Jan 2010 20:02:46 +0000 (20:02 +0000)] 
merge account branch to trunk

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@896989 13f79535-47bb-0310-9956-ffa450edef68

9 years agoadd button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili
John Christopher Anderson [Sat, 2 Jan 2010 19:01:25 +0000 (19:01 +0000)] 
add button to cleanup old view files. closes COUCHDB-610. thanks Ilia Cheishvili

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@895262 13f79535-47bb-0310-9956-ffa450edef68

9 years agoCloses COUCHDB-547 - Adding a View Compaction Button
Paul Joseph Davis [Fri, 30 Oct 2009 23:08:42 +0000 (23:08 +0000)] 
Closes COUCHDB-547 - Adding a View Compaction Button

Thanks to Joshua Bronson for the patch.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@831485 13f79535-47bb-0310-9956-ffa450edef68

9 years agoAdd support for COPY (copyDoc) to jquery.couch.js.
Jason David Davies [Thu, 1 Oct 2009 10:56:15 +0000 (10:56 +0000)] 
Add support for COPY (copyDoc) to jquery.couch.js.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820603 13f79535-47bb-0310-9956-ffa450edef68

9 years agoenable multi-key-get in jquery.couch.js, patch by Benoit Chesneau, closes COUHCDB-376
Jan Lehnardt [Sun, 13 Sep 2009 17:53:57 +0000 (17:53 +0000)] 
enable multi-key-get in jquery.couch.js, patch by Benoit Chesneau, closes COUHCDB-376

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814364 13f79535-47bb-0310-9956-ffa450edef68

9 years agofix persisting config changes from Futon, reported by Robert Newson, we need a test...
Jan Lehnardt [Tue, 18 Aug 2009 13:22:17 +0000 (13:22 +0000)] 
fix persisting config changes from Futon, reported by Robert Newson, we need a test suite for Futon, anyone?

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805407 13f79535-47bb-0310-9956-ffa450edef68

9 years agoInitial check-in of OAuth and cookie authentication.
Damien F. Katz [Tue, 4 Aug 2009 19:50:46 +0000 (19:50 +0000)] 
Initial check-in of OAuth and cookie authentication.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@800938 13f79535-47bb-0310-9956-ffa450edef68

9 years agoAvoid usage of `Array.indexOf` function, which is not available on IE (and not yet...
Christopher Lenz [Wed, 22 Jul 2009 10:11:42 +0000 (10:11 +0000)] 
Avoid usage of `Array.indexOf` function, which is not available on IE (and not yet part of any final ECMAScript standard).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796658 13f79535-47bb-0310-9956-ffa450edef68

9 years agoChange document creation in Futon so that it no longer prompts for a document ID...
Christopher Lenz [Wed, 22 Jul 2009 09:03:40 +0000 (09:03 +0000)] 
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

9 years agoFix for compatibility of Futon with design documents that have slashes in the documen...
Christopher Lenz [Tue, 21 Jul 2009 21:16:56 +0000 (21:16 +0000)] 
Fix for compatibility of Futon with design documents that have slashes in the document ID or a view name. Closes COUCHDB-408 (again).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796541 13f79535-47bb-0310-9956-ffa450edef68

9 years agorefactor jquery.couch.js, gets rid of a lot of duplicate code, patch by Yoan Blanc...
Jan Lehnardt [Tue, 21 Jul 2009 10:02:45 +0000 (10:02 +0000)] 
refactor jquery.couch.js, gets rid of a lot of duplicate code, patch by Yoan Blanc, closes COUCHDB-368

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796228 13f79535-47bb-0310-9956-ffa450edef68

9 years agowheeeeeeee
Noah Slater [Tue, 14 Jul 2009 20:21:39 +0000 (20:21 +0000)] 
wheeeeeeee

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794057 13f79535-47bb-0310-9956-ffa450edef68

9 years agoOnly update a document's _id and _rev if the save was successful.
Paul Joseph Davis [Sat, 11 Jul 2009 21:00:38 +0000 (21:00 +0000)] 
Only update a document's _id and _rev if the save was successful.

Thanks Jason Davies.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@793218 13f79535-47bb-0310-9956-ffa450edef68

9 years agotrimmed trailing whitespace
Noah Slater [Mon, 6 Jul 2009 00:33:50 +0000 (00:33 +0000)] 
trimmed trailing whitespace

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791350 13f79535-47bb-0310-9956-ffa450edef68

9 years agoadd bulkSave method to jquery.couch.js
John Christopher Anderson [Wed, 15 Apr 2009 23:20:16 +0000 (23:20 +0000)] 
add bulkSave method to jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765419 13f79535-47bb-0310-9956-ffa450edef68

9 years agomap queries with group=true query option will return an error. closes COUCHDB-185...
John Christopher Anderson [Fri, 20 Mar 2009 10:58:52 +0000 (10:58 +0000)] 
map queries with group=true query option will return an error. closes COUCHDB-185. changes to jquery.couch.js to support ajaxOptions may be useful for more than just openDoc, will need to be spread to the rest of the API.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756413 13f79535-47bb-0310-9956-ffa450edef68

9 years agomerge design doc resource branch. breaking changes to _view query paths. closes COUCH...
John Christopher Anderson [Mon, 9 Mar 2009 19:52:54 +0000 (19:52 +0000)] 
merge design doc resource branch. breaking changes to _view query paths. closes COUCHDB-280

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751813 13f79535-47bb-0310-9956-ffa450edef68

9 years agoundefined protection for design doc attachments in futon
John Christopher Anderson [Sun, 22 Feb 2009 18:44:26 +0000 (18:44 +0000)] 
undefined protection for design doc attachments in futon

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746798 13f79535-47bb-0310-9956-ffa450edef68

9 years agoLink to design docs that have ddoc.couchapp.index or index.html, from Futon database...
John Christopher Anderson [Sun, 22 Feb 2009 07:31:26 +0000 (07:31 +0000)] 
Link to design docs that have ddoc.couchapp.index or index.html, from Futon database index.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746644 13f79535-47bb-0310-9956-ffa450edef68

9 years agoChange _slow_view back to _temp_view, as discussed on the mailing list (see http...
Christopher Lenz [Mon, 26 Jan 2009 21:22:18 +0000 (21:22 +0000)] 
Change _slow_view back to _temp_view, as discussed on the mailing list (see markmail.org/message/o44cafucgwlpudov).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@737859 13f79535-47bb-0310-9956-ffa450edef68

9 years agoAdd a page to Futon that shows the currently active tasks (compaction, view indexing...
Christopher Lenz [Mon, 26 Jan 2009 20:38:52 +0000 (20:38 +0000)] 
Add a page to Futon that shows the currently active tasks (compaction, view indexing, etc).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@737829 13f79535-47bb-0310-9956-ffa450edef68

10 years agoAllow modification of existing config option values from Futon.
Christopher Lenz [Wed, 14 Jan 2009 16:48:07 +0000 (16:48 +0000)] 
Allow modification of existing config option values from Futon.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734443 13f79535-47bb-0310-9956-ffa450edef68

10 years agoAdd syntax highlighting of JSON code in Futon.
Christopher Lenz [Mon, 12 Jan 2009 21:06:35 +0000 (21:06 +0000)] 
Add syntax highlighting of JSON code in Futon.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@733897 13f79535-47bb-0310-9956-ffa450edef68

10 years agoRename _temp_views to _slow_views. Any clients who were using temp views are encourag...
John Christopher Anderson [Sun, 4 Jan 2009 01:01:33 +0000 (01:01 +0000)] 
Rename _temp_views to _slow_views. Any clients who were using temp views are encouraged not to use slow views, and instead transition to design documents (or running the views on the client).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@731144 13f79535-47bb-0310-9956-ffa450edef68

10 years agoAdd HTTP API for getting the complete config, and add a page to Futon that displays...
Christopher Lenz [Tue, 16 Sep 2008 20:24:48 +0000 (20:24 +0000)] 
Add HTTP API for getting the complete config, and add a page to Futon that displays the configuration.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@696041 13f79535-47bb-0310-9956-ffa450edef68

10 years agoFuton: fixes for IE6/7 compatibility, some minor polish for the map/reduce code edito...
Christopher Lenz [Tue, 3 Jun 2008 15:16:29 +0000 (15:16 +0000)] 
Futon: fixes for IE6/7 compatibility, some minor polish for the map/reduce code editor, updated logo to match the version used elsewhere.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@662823 13f79535-47bb-0310-9956-ffa450edef68

10 years ago* Respond to DELETE requests with a "200 OK" status code instead of "202 Accepted...
Christopher Lenz [Mon, 26 May 2008 12:47:00 +0000 (12:47 +0000)] 
* Respond to DELETE requests with a "200 OK" status code instead of "202 Accepted", as the deletion is performed immediately. * The "content-type" member in attachment structures is now named "content_type" (underscore) for consistency and to be more accessible from Javascript (and presumably other languages, too)

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660176 13f79535-47bb-0310-9956-ffa450edef68

10 years agoFixes to the XHR/Javascript code to be compatible with HTTP/1.0 proxies. Closes COUCH...
Christopher Lenz [Mon, 26 May 2008 11:51:44 +0000 (11:51 +0000)] 
Fixes to the XHR/Javascript code to be compatible with HTTP/1.0 proxies. Closes COUCHDB-40.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660170 13f79535-47bb-0310-9956-ffa450edef68

10 years agoImprove jQuuery-based CouchDB interface so that it doesn't report an error when no...
Christopher Lenz [Sun, 25 May 2008 14:15:53 +0000 (14:15 +0000)] 
Improve jQuuery-based CouchDB interface so that it doesn't report an error when no 'success' callback was provided.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659989 13f79535-47bb-0310-9956-ffa450edef68

10 years agoInitial set of changes to Futon to support the recent introduction map/reduce.
Christopher Lenz [Fri, 23 May 2008 11:09:17 +0000 (11:09 +0000)] 
Initial set of changes to Futon to support the recent introduction map/reduce.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659501 13f79535-47bb-0310-9956-ffa450edef68

10 years agofix to submit temp view src as json
Damien F. Katz [Mon, 19 May 2008 19:28:19 +0000 (19:28 +0000)] 
fix to submit temp view src as json

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657930 13f79535-47bb-0310-9956-ffa450edef68

10 years agoChanged temp view definition to always be jsonobjects with map/reduce source as membe...
Damien F. Katz [Mon, 19 May 2008 19:20:19 +0000 (19:20 +0000)] 
Changed temp view definition to always be jsonobjects with map/reduce source as members of the object. Everywhere we used 'text/javascript' or 'application/javascript', we now just use 'javascript'

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657926 13f79535-47bb-0310-9956-ffa450edef68

10 years agoMerged futon-async branch back into trunk.
Christopher Lenz [Tue, 15 Apr 2008 00:07:08 +0000 (00:07 +0000)] 
Merged futon-async branch back into trunk.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@648074 13f79535-47bb-0310-9956-ffa450edef68