fix: [UI] Galaxy pagination

pull/7017/head
Jakub Onderka 2021-02-16 11:53:22 +01:00
parent ab1808a1ed
commit 6149d6e611
2 changed files with 5 additions and 8 deletions

View File

@ -15,7 +15,7 @@
}
?>
<div class='view'>
<div class="view">
<div class="row-fluid">
<div class="span8">
<h2>
@ -26,7 +26,7 @@
<?php echo $kco; ?>
</div>
</div>
<div id="clusters_div"></div>
<div id="clusters_content"></div>
</div>
<script type="text/javascript">
@ -45,7 +45,7 @@ $(function () {
}
?>
$.get("<?php echo h($uri);?>", function(data) {
$("#clusters_div").html(data);
$("#clusters_content").html(data);
}).fail(xhrFailCallback);
var $kco = $('#killChainOrder');

View File

@ -5,10 +5,8 @@
}
}
echo $this->element('/genericElements/IndexTable/index_table', array(
'containerId' => 'clusters',
'data' => array(
'paginatorOptions' => array(
'update' => '#clusters_div',
),
'data' => $list,
'top_bar' => array(
'children' => array(
@ -316,7 +314,7 @@
?>
<script type="text/javascript">
$(document).ready(function(){
$(function(){
var passedArgsArray = <?php echo $passedArgs; ?>;
var galaxyId = "<?php echo h($galaxy_id); ?>";
if (passedArgsArray['context'] === undefined || passedArgsArray['context'] === "") {
@ -327,4 +325,3 @@
});
});
</script>
<?php echo $this->Js->writeBuffer(); ?>