Skip to content

Commit

Permalink
allow passing of ajax options to $.couch.list()
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1094049 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
janl committed Apr 16, 2011
1 parent 30eba05 commit 3701312
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions share/www/script/jquery.couch.js
Expand Up @@ -821,10 +821,12 @@
* docs for /db/_design/design-doc/_list/l1/v1</a>
* @param {String} list Listname in the form of ddoc/listname
* @param {String} view View to run list against
* @param {options} CouchDB <a href="http://wiki.apache.org/couchdb/
* HTTP_view_API">View Options</a>
* @param {ajaxSettings} options <a href="http://api.jquery.com/
* jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
*/
list: function(list, view, options) {
list: function(list, view, options, ajaxOptions) {
var list = list.split('/');
var options = options || {};
var type = 'GET';
Expand All @@ -841,7 +843,7 @@
url: this.uri + '_design/' + list[0] +
'/_list/' + list[1] + '/' + view + encodeOptions(options)
},
options, 'An error occured accessing the list'
ajaxOptions, 'An error occured accessing the list'
);
},

Expand Down

0 comments on commit 3701312

Please sign in to comment.