Commit e58eb15c authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1004: Implement manual grouping feature

Task-Url: https://pm.winseda.de/issues/1004
parent 64b4a07a
......@@ -13,6 +13,11 @@ function ElementGroups() {
};
ElementGroups.prototype.editGroup = function(groupId) {
if(!__util.isLoggedIn()) {
__util.showLoginNote();
return;
}
var _this = this;
var form_identifier = "edit-element-group";
......@@ -34,6 +39,10 @@ ElementGroups.prototype.editGroup = function(groupId) {
};
ElementGroups.prototype.triggerAddToGroup = function(itemId) {
if(!__util.isLoggedIn()) {
__util.showLoginNote();
return;
}
var _this = this;
var form_identifier = "add-item";
......@@ -57,7 +66,10 @@ ElementGroups.prototype.triggerAddToGroup = function(itemId) {
};
ElementGroups.prototype.triggerRemoveFromGroup = function(itemId) {
if(!__util.isLoggedIn()) {
__util.showLoginNote();
return;
}
};
ElementGroups.prototype.queryGroup = function(groupId) {
......@@ -82,6 +94,10 @@ ElementGroups.prototype.refreshElementGroups = function() {
};
ElementGroups.prototype.deleteGroup = function(groupId) {
if(!__util.isLoggedIn()) {
__util.showLoginNote();
return;
}
var _this = this;
bootbox.confirm(__translator.translate("~eu.dariah.de.minfba.cosmotool.view.person_group.remove"), function(result) {
if(result) {
......
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