3016: prefill input search with value configured in the template
[arvados.git] / apps / workbench / app / assets / javascripts / pipeline_instances.js
index 4b17b4eeb8528028ed05fea3927d433850378064..350b36137a9e7eb0453a9f803e7e7e810a8fd050 100644 (file)
@@ -1,5 +1,5 @@
 function run_pipeline_button_state() {
-    var a = $('a.editable.required.editable-empty');
+    var a = $('a.editable.required.editable-empty,input.form-control.required[value=]');
     if (a.length > 0) {
         $(".run-pipeline-button").addClass("disabled");
     }
@@ -47,15 +47,6 @@ $(document).on('ready ajax:complete', function() {
     run_pipeline_button_state();
 });
 
-$(document).on('ajax:complete ready', function() {
-  var a = $('.arv-log-event-listener');
-  if (a.length > 0) {
-    $('.arv-log-event-listener').each(function() {
-      subscribeToEventLog(this.id);
-    });
-  }
-});
-
 $(document).on('arv-log-event', '.arv-log-event-handler-append-logs', function(event, eventData){
     var wasatbottom = ($(this).scrollTop() + $(this).height() >=
                        this.scrollHeight);
@@ -95,3 +86,9 @@ var showhide_compare = function() {
 };
 $('[data-object-uuid*=-d1hrv-] input[name="uuids[]"]').on('click', showhide_compare);
 showhide_compare();
+
+setInterval(function(){
+    if ($('[data-pipeline-state=RunningOnServer],[data-pipeline-state=RunningOnClient]').length > 0) {
+        $('#Components.tab-pane,#Graph.tab-pane').trigger('arv:pane:reload');
+    }
+}, 15000);