fix: [UI] Show error message when galaxy info couldn't be loaded

pull/6788/head
Jakub Onderka 2020-12-21 22:51:04 +01:00
parent df5f65da25
commit 402baa4677
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
</div>
<script type="text/javascript">
$(document).ready(function () {
$(function () {
<?php
$uri = $baseurl . "/galaxy_clusters/index/" . $galaxy['Galaxy']['id'];
if (isset($passedArgsArray) && isset($passedArgsArray['context']) && $passedArgsArray['context'] == 'fork_tree') {
@ -46,7 +46,7 @@ $(document).ready(function () {
?>
$.get("<?php echo h($uri);?>", function(data) {
$("#clusters_div").html(data);
});
}).fail(xhrFailCallback);
var $kco = $('#killChainOrder');
if ($kco && $kco.length > 0) {