mirror of https://github.com/MISP/MISP
fix: [tag collections] Fixed hook to reload galaxies
parent
c09992d2d9
commit
8d44c78f4f
|
@ -46,7 +46,7 @@ class AppController extends Controller
|
|||
|
||||
public $helpers = array('Utility', 'OrgImg');
|
||||
|
||||
private $__queryVersion = '50';
|
||||
private $__queryVersion = '51';
|
||||
public $pyMispVersion = '2.4.99';
|
||||
public $phpmin = '5.6.5';
|
||||
public $phprec = '7.0.16';
|
||||
|
|
|
@ -567,11 +567,13 @@ function quickSubmitTagForm(event_id, tag_id) {
|
|||
},
|
||||
success:function (data, textStatus) {
|
||||
loadEventTags(event_id);
|
||||
loadGalaxies(event_id, 'event');
|
||||
handleGenericAjaxResponse(data);
|
||||
},
|
||||
error:function() {
|
||||
showMessage('fail', 'Could not add tag.');
|
||||
loadEventTags(event_id);
|
||||
loadGalaxies(event_id, 'event');
|
||||
},
|
||||
complete:function() {
|
||||
$("#popover_form").fadeOut();
|
||||
|
@ -599,12 +601,14 @@ function quickSubmitAttributeTagForm(attribute_id, tag_id) {
|
|||
updateIndex(0, 'event');
|
||||
} else {
|
||||
loadAttributeTags(attribute_id);
|
||||
loadGalaxies(attribute_id, 'attribute');
|
||||
}
|
||||
handleGenericAjaxResponse(data);
|
||||
},
|
||||
error:function() {
|
||||
showMessage('fail', 'Could not add tag.');
|
||||
loadAttributeTags(attribute_id);
|
||||
loadGalaxies(attribute_id, 'attribute');
|
||||
},
|
||||
complete:function() {
|
||||
$("#popover_form").fadeOut();
|
||||
|
|
Loading…
Reference in New Issue