couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [34/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:39 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/3b01c58e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/3b01c58e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/3b01c58e

Branch: refs/heads/import-master
Commit: 3b01c58e48fe7a83d0436229a4baeab5bc31e0ff
Parents: 93d7e84
Author: Jan Lehnardt <jan@apache.org>
Authored: Sat Apr 16 20:40:12 2011 +0000
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Sat Apr 16 20:40:12 2011 +0000

----------------------------------------------------------------------
 jquery.couch.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/3b01c58e/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index e87f6c7..f4c609b 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -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';
@@ -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'
           );
         },
 


Mime
View raw message