X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/664919d58c3689cd9e0a25547ec1e02d9adda38c..cedbb7fc9b07c25ccd57e991c61f5730ebf8c4bb:/apps/workbench/app/assets/javascripts/pipeline_instances.js diff --git a/apps/workbench/app/assets/javascripts/pipeline_instances.js b/apps/workbench/app/assets/javascripts/pipeline_instances.js index 7bb7c7f9f9..102c60233a 100644 --- a/apps/workbench/app/assets/javascripts/pipeline_instances.js +++ b/apps/workbench/app/assets/javascripts/pipeline_instances.js @@ -98,7 +98,11 @@ $(document).on('arv-log-event', '.arv-log-event-handler-append-logs', function(e var wasatbottom = ($(this).scrollTop() + $(this).height() >= this.scrollHeight); if (eventData.event_type == "stderr" || eventData.event_type == "stdout") { - $(this).append(eventData.properties.text); + if( eventData.prepend ) { + $(this).prepend(eventData.properties.text); + } else { + $(this).append(eventData.properties.text); + } } if (wasatbottom) { @@ -120,5 +124,9 @@ var showhide_compare = function() { }); } }; -$('[data-object-uuid*=-d1hrv-] input[name="uuids[]"]').on('click', showhide_compare); -showhide_compare(); +$(document).on('change', '[data-object-uuid*=-d1hrv-] input[name="uuids[]"]', function(e) { + if(e.target == this) { + showhide_compare(); + } +}); +$(document).on('ready ajax:success', showhide_compare);