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
diff --git a/jquery.couch.js b/jquery.couch.js
index 1e2de2b..9399ec1 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -205,9 +205,10 @@
             alert("please provide an eachApp function for allApps()");
           }
         },
-        openDoc: function(docId, options) {
+        openDoc: function(docId, options, ajaxOptions) {
           options = options || {};
-          $.ajax({
+          ajaxOptions = ajaxOptions || {};
+          $.ajax($.extend({
             type: "GET",
             url: this.uri + encodeURIComponent(docId) + encodeOptions(options),
             dataType: "json",
@@ -221,7 +222,7 @@
                 alert("The document could not be retrieved: " + resp.reason);
               }
             }
-          });
+          }, ajaxOptions));
         },
         saveDoc: function(doc, options) {
           options = options || {};