X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/95d1231a25637c5ba0fd07b116876b17711ec201..333fbec95590cfcb30cfff7dc61e6b8cc41edf18:/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 15134cbeed..fa9d6ae5a4 100644 --- a/apps/workbench/app/assets/javascripts/pipeline_instances.js +++ b/apps/workbench/app/assets/javascripts/pipeline_instances.js @@ -48,6 +48,10 @@ $(document).on('ready ajax:complete', function() { }); $(document).on('arv-log-event', '.arv-refresh-on-state-change', function(event, eventData) { + if (this != event.target) { + // Not interested in events sent to child nodes. + return; + } if (eventData.event_type == "update" && eventData.properties.old_attributes.state != eventData.properties.new_attributes.state) { @@ -56,6 +60,10 @@ $(document).on('arv-log-event', '.arv-refresh-on-state-change', function(event, }); $(document).on('arv-log-event', '.arv-log-event-subscribe-to-pipeline-job-uuids', function(event, eventData){ + if (this != event.target) { + // Not interested in events sent to child nodes. + return; + } if (!((eventData.object_kind == 'arvados#pipelineInstance') && (eventData.event_type == "create" || eventData.event_type == "update") && @@ -83,6 +91,10 @@ $(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") { @@ -108,5 +120,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);