# HG changeset patch # User Rabah Meradi # Date 1435057728 -7200 # Node ID e7ee508a8b2f4b074bd9b1a3b5eae8e6c86ba6a4 # Parent de5be53e2ea8c65622ee4bafe02d6b653d4b0315 [js] Using appropriate http method when calling a remote function to respect REST principles. closes #5355952 diff -r de5be53e2ea8 -r e7ee508a8b2f web/data/cubicweb.ajax.js --- a/web/data/cubicweb.ajax.js Fri May 15 23:05:54 2015 +0200 +++ b/web/data/cubicweb.ajax.js Tue Jun 23 13:08:48 2015 +0200 @@ -500,7 +500,7 @@ function unloadPageData() { // NOTE: do not make async calls on unload if you want to avoid // strange bugs - loadRemote(AJAX_BASE_URL, ajaxFuncArgs('unload_page_data'), 'GET', true); + loadRemote(AJAX_BASE_URL, ajaxFuncArgs('unload_page_data'), 'POST', true); } function removeBookmark(beid) { diff -r de5be53e2ea8 -r e7ee508a8b2f web/data/cubicweb.edition.js --- a/web/data/cubicweb.edition.js Fri May 15 23:05:54 2015 +0200 +++ b/web/data/cubicweb.edition.js Tue Jun 23 13:08:48 2015 +0200 @@ -171,7 +171,7 @@ var entityForm = jQuery('#entityForm'); var oid = optionNode.id.substring(2); // option id is prefixed by "id" loadRemote(AJAX_BASE_URL, ajaxFuncArgs('add_pending_inserts', null, - [oid.split(':')]), 'GET', true); + [oid.split(':')]), 'POST', true); var selectNode = optionNode.parentNode; // remove option node selectNode.removeChild(optionNode);