cockpit/js/instance.js in cpee-2.0.14 vs cockpit/js/instance.js in cpee-2.0.15

- old
+ new

@@ -351,14 +351,10 @@ $("#current-monitor").attr('href','edit.html?monitor=' + url); $("#current-graph").show(); $("#current-graph").attr('href','graph.html?monitor=' + url); $("#current-track").show(); $("#current-track").attr('href','track.html?monitor=' + url); - if ($('body').attr('current-logs')) { - $("#current-log").show(); - $("#current-log").attr('href','edit.html?monitor=' + url); - } var q = $.parseQuerySimple(); history.replaceState({}, '', '?' + (q.min || q.min=="" ? "min&" : "") + 'monitor='+url); // Change url to return to current instance when reloading (because new subscription is made) $("input[name=votecontinue]").prop( "checked", false ); @@ -444,9 +440,17 @@ }); } else if(val == "attributes") { var text = $(" > attributes > info",res).text() + " (" + url.replace(/\/$/,'').split(/[\\/]/).pop() + ")"; $('#title').text(text); document.title = text; + if ($('body').attr('current-logs')) { + var uuid = $(" > attributes > uuid",res).text(); + $("#current-log").show(); + $("#current-log").attr('href',$('body').attr('current-logs') + uuid + '.xes.yaml'); + if ($("#current-log").text() == '') { + $("#current-log").text(uuid + '.xes.yaml'); + } + } } } }); } // }}}