fixed stdout caputure pending getting prepended when the standard out is not pending anymore

This commit is contained in:
John Mitchell 2015-05-20 18:00:46 -04:00
parent 65a28787d3
commit 17924aedff

View File

@ -252,7 +252,11 @@ export function JobStdoutController ($location, $log, $rootScope, $scope, $compi
Rest.setUrl(url);
Rest.get()
.success( function(data) {
$('#pre-container-content').append(data.content);
if ($('#pre-container-content').html() === "stdout capture pending") {
$('#pre-container-content').html(data.content);
} else {
$('#pre-container-content').append(data.content);
}
loaded_sections.push({
start: (data.range.start < 0) ? 0 : data.range.start,
end: data.range.end