couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1094049 - /couchdb/trunk/share/www/script/jquery.couch.js
Date Sat, 16 Apr 2011 20:40:12 GMT
Author: jan
Date: Sat Apr 16 20:40:12 2011
New Revision: 1094049

URL: http://svn.apache.org/viewvc?rev=1094049&view=rev
Log:
allow passing of ajax options to $.couch.list()

Modified:
    couchdb/trunk/share/www/script/jquery.couch.js

Modified: couchdb/trunk/share/www/script/jquery.couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/jquery.couch.js?rev=1094049&r1=1094048&r2=1094049&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/jquery.couch.js [utf-8] Sat Apr 16 20:40:12 2011
@@ -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