Commit 8737c314 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1004: Implement manual grouping feature

Task-Url: https://pm.winseda.de/issues/1004
parent e58eb15c
......@@ -70,6 +70,26 @@ ElementGroups.prototype.triggerRemoveFromGroup = function(itemId) {
__util.showLoginNote();
return;
}
var _this = this;
var form_identifier = "remove-item";
this.form = null;
modalFormHandler = new ModalFormHandler({
formFullUrl: __util.composeUrl("elementCollections/forms/removeItem"),
method: "GET",
data: { itemId : itemId },
contentType: "json",
identifier: form_identifier,
translations: [{placeholder: "~*servererror.head", key: "~de.dariah.genericsearch.view.async.servererror.head"},
{placeholder: "~*servererror.body", key: "~de.dariah.genericsearch.view.async.servererror.body"},
{placeholder: "~*validationerrors.head", key: "~eu.dariah.de.minfba.common.view.forms.validationerrors.head"},
{placeholder: "~*validationerrors.body", key: "~eu.dariah.de.minfba.common.view.forms.validationerrors.body"}],
completeCallback: function() {
_this.refreshElementGroups();
}
});
modalFormHandler.show(form_identifier);
};
ElementGroups.prototype.queryGroup = function(groupId) {
......@@ -81,6 +101,7 @@ ElementGroups.prototype.refreshElementGroups = function() {
$.ajax({
url: __util.composeUrl("elementCollections/list"),
type: "GET",
dataType: "json",
success: function(data) {
if (data!==undefined && data!==null && data.length>0) {
$("#person-groups").text("");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment