mirror of https://github.com/MISP/MISP
fix: [events:eventGraph] Makes additions and editions of nodes working as expected
Fix #6877pull/6916/head
parent
6f4f6571d8
commit
c6d3b5f0dd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue