You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/03/11 00:40:40 UTC

[GitHub] popojargo commented on a change in pull request #1065: Remove JQuery uses from documents addon

popojargo commented on a change in pull request #1065: Remove JQuery uses from documents addon
URL: https://github.com/apache/couchdb-fauxton/pull/1065#discussion_r173639617
 
 

 ##########
 File path: app/addons/documents/doc-editor/actions.js
 ##########
 @@ -79,33 +80,24 @@ function hideDeleteDocModal () {
 }
 
 function deleteDoc (doc) {
-  var databaseName = doc.database.safeID();
-  var query = '?rev=' + doc.get('_rev');
-
-  $.ajax({
-    url: FauxtonAPI.urls('document', 'server', databaseName, doc.safeID(), query),
-    type: 'DELETE',
-    headers: {
-      'Accept': 'application/json',
-      'Content-Type': 'application/json',
-    },
-    xhrFields: {
-      withCredentials: true
 
 Review comment:
   I think you have to include  something similar to that in fetch. I think it's:   credentials: 'include'

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services