1
0
Fork 0
This commit is contained in:
Jan Steemann 2012-11-29 20:53:54 +01:00
parent 18e7cf5188
commit 0791934893
2 changed files with 43 additions and 4 deletions

View File

@ -1,6 +1,8 @@
v1.1.0 (XXXX-XX-XX)
-------------------
* fixed issue #301: PATCH does not work in web interface
# fixed issue #269: fix make distclean & clean
* fixed issue #296: system collections not usable from AQL

View File

@ -217,7 +217,7 @@ function ArangoConnection () {
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/// @brief executs a get request
/// @brief executes a get request
////////////////////////////////////////////////////////////////////////////////
ArangoConnection.prototype.get = function (url) {
@ -249,7 +249,7 @@ ArangoConnection.prototype.get = function (url) {
ArangoConnection.prototype.GET = ArangoConnection.prototype.get;
////////////////////////////////////////////////////////////////////////////////
/// @brief executs a delete request
/// @brief executes a delete request
////////////////////////////////////////////////////////////////////////////////
ArangoConnection.prototype.delete = function (url) {
@ -282,7 +282,7 @@ ArangoConnection.prototype.delete = function (url) {
ArangoConnection.prototype.DELETE = ArangoConnection.prototype.delete;
////////////////////////////////////////////////////////////////////////////////
/// @brief executs a post request
/// @brief executes a post request
////////////////////////////////////////////////////////////////////////////////
ArangoConnection.prototype.post = function (url, body) {
@ -315,7 +315,7 @@ ArangoConnection.prototype.post = function (url, body) {
ArangoConnection.prototype.POST = ArangoConnection.prototype.post;
////////////////////////////////////////////////////////////////////////////////
/// @brief executs a put request
/// @brief executes a put request
////////////////////////////////////////////////////////////////////////////////
ArangoConnection.prototype.put = function (url, body) {
@ -347,6 +347,43 @@ ArangoConnection.prototype.put = function (url, body) {
ArangoConnection.prototype.PUT = ArangoConnection.prototype.put;
////////////////////////////////////////////////////////////////////////////////
/// @brief executes a patch request
////////////////////////////////////////////////////////////////////////////////
ArangoConnection.prototype.patch = function (url, body) {
var msg = null;
$.ajax({
async: false,
type: "PATCH",
url: url,
data: body,
contentType: "application/json",
dataType: "json",
processData: false,
success: function(data) {
msg = data;
},
error: function(data) {
try {
msg = JSON.parse(data.responseText);
}
catch (err) {
msg = data.responseText;
}
}
});
return msg;
};
ArangoConnection.prototype.PATCH = ArangoConnection.prototype.patch;
////////////////////////////////////////////////////////////////////////////////
/// @}
////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------------------
// --SECTION-- global variables
// -----------------------------------------------------------------------------