fix: [events:eventGraph] Makes additions and editions of nodes working as expected

Fix #6877
pull/6916/head
mokaddem 2021-01-25 13:15:24 +01:00
parent 6f4f6571d8
commit c6d3b5f0dd
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -1638,7 +1638,7 @@ class MispInteraction {
},
{
text: "Add an Attribute",
onclick: "simplePopup('"+baseurl+"/attributes/add/"+scope_id+"');"
onclick: "openGenericModal('"+baseurl+"/attributes/add/"+scope_id+"');"
},
]);
}
@ -1662,7 +1662,7 @@ class MispInteraction {
var group = nodes.get(id).group;
id = id.startsWith('o-') ? id.substr(2) : id;
if (group.slice(0, 9) == 'attribute') {
simplePopup(baseurl + '/attributes/edit/' + id);
openGenericModal(baseurl + '/attributes/edit/' + id);
} else if (group == 'object') {
window.location = baseurl + '/objects/edit/' + id;
}