commit a9258793df92a56daadd9c4ec68705325f6dfe1d
parent 309df7cf979e693810bdd10831d7f557c583125f
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 23 Sep 2015 16:47:37 +0200
Added parameter to ignore IDs when updating
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraProxy.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraProxy.js
@@ -12,8 +12,7 @@ Ext.define("PartKeepr.data.HydraProxy", {
limitParam: "itemsPerPage",
defaultListenerScope: true,
sortParam: "order",
- headers: {
- },
+ headers: {},
/**
* An ID which should be ignored when loading items. Usually we use the item ID as URL as per JSON-LD spec,
@@ -25,7 +24,7 @@ Ext.define("PartKeepr.data.HydraProxy", {
ignoreLoadId: null,
/**
- * If true, ignores IDs when updating/deletes entries
+ * If true, ignores IDs when updating/deletes entries. This is mostly used for entities where no primary key exists.
*/
ignoreIds: false,
@@ -40,7 +39,8 @@ Ext.define("PartKeepr.data.HydraProxy", {
this.showException(response);
}
},
- getHeaders: function () {
+ getHeaders: function ()
+ {
var headers = this.callParent(arguments);
headers["X-WSSE"] = PartKeepr.getApplication().getSessionManager().getWSSE();
@@ -124,7 +124,8 @@ Ext.define("PartKeepr.data.HydraProxy", {
this.showException(response);
},
- showException: function (response) {
+ showException: function (response)
+ {
PartKeepr.ExceptionWindow.showException(response);
}
});