fix: Fixed a bug where users couldn't add galaxies after paginating/filtering on event attributes

pull/3368/head
iglocska 2018-06-21 09:07:38 +02:00
parent 10e5ab3a69
commit 437793a65f
3 changed files with 6 additions and 3 deletions

View File

@ -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';

View File

@ -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):
?>

View File

@ -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);