mirror of https://github.com/MISP/MISP
fix: Fixed a bug where users couldn't add galaxies after paginating/filtering on event attributes
parent
10e5ab3a69
commit
437793a65f
|
@ -46,7 +46,7 @@ class AppController extends Controller {
|
|||
|
||||
public $helpers = array('Utility', 'OrgImg');
|
||||
|
||||
private $__queryVersion = '39';
|
||||
private $__queryVersion = '40';
|
||||
public $pyMispVersion = '2.4.92';
|
||||
public $phpmin = '5.6.5';
|
||||
public $phprec = '7.0.16';
|
||||
|
|
|
@ -279,6 +279,9 @@ attributes or the appropriate distribution level. If you think there is a mistak
|
|||
var lastSelected = false;
|
||||
var deleted = <?php echo (isset($deleted) && $deleted) ? 'true' : 'false';?>;
|
||||
$(document).ready(function() {
|
||||
$('.addGalaxy').click(function() {
|
||||
addGalaxyListener();
|
||||
});
|
||||
<?php
|
||||
if ($focusedRow !== false):
|
||||
?>
|
||||
|
|
|
@ -3088,11 +3088,11 @@ $('.galaxy-toggle-button').click(function() {
|
|||
}
|
||||
});
|
||||
|
||||
$('.addGalaxy').click(function() {
|
||||
function addGalaxyListener() {
|
||||
var target_type = $(this).data('target-type');
|
||||
var target_id = $(this).data('target-id');
|
||||
getPopup(target_type + '/' + target_id, 'galaxies', 'selectGalaxyNamespace');
|
||||
});
|
||||
}
|
||||
|
||||
function quickSubmitGalaxyForm(event_id, cluster_id) {
|
||||
$('#GalaxyTargetId').val(cluster_id);
|
||||
|
|
Loading…
Reference in New Issue