X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7afe2c73ccdaad21b2d36b345a1627c1ad3f51a1..74fec3cd8284eae4829dad2c287588d52c621c4b:/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 9824400828..7570b2f8a5 100644 --- a/apps/workbench/app/assets/javascripts/pipeline_instances.js +++ b/apps/workbench/app/assets/javascripts/pipeline_instances.js @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + function run_pipeline_button_state() { var a = $('a.editable.required.editable-empty,input.form-control.required[value=""]'); if ((a.length > 0) || ($('.unreadable-inputs-present').length)) { @@ -35,7 +39,7 @@ $(document).on('editable:success', function(event, tag, response, newValue) { $(document).on('ready ajax:complete', function() { $('a.editable.required').each(function() { var $tag = $(this); - if ($tag.hasClass("editable-empty") || $tag.hasClass("unreadable-input")) { + if ($tag.hasClass("editable-empty")) { $tag.parent().css("background-color", "#ffdddd"); $tag.parent().prev().css("background-color", "#ffdddd"); } @@ -101,26 +105,6 @@ $(document).on('ready ajax:success', function() { }); }); -$(document).on('arv-log-event', '.arv-log-event-handler-append-logs', function(event, eventData){ - if (this != event.target) { - // Not interested in events sent to child nodes. - return; - } - var wasatbottom = ($(this).scrollTop() + $(this).height() >= this.scrollHeight); - - if (eventData.event_type == "stderr" || eventData.event_type == "stdout") { - if( eventData.prepend ) { - $(this).prepend(eventData.properties.text); - } else { - $(this).append(eventData.properties.text); - } - } - - if (wasatbottom) { - this.scrollTop = this.scrollHeight; - } -}); - // Set up all events for the pipeline instances compare button. (function() { var compare_form = '#compare';