[ARVADOS] created: 5bdbbbf5137c6ef12d12362715dfc7ee6568dc93

Git user git at public.curoverse.com
Thu Dec 22 14:16:27 EST 2016


        at  5bdbbbf5137c6ef12d12362715dfc7ee6568dc93 (commit)


commit 5bdbbbf5137c6ef12d12362715dfc7ee6568dc93
Author: Tom Morris <tfmorris at curoverse.com>
Date:   Thu Dec 22 13:55:15 2016 -0500

    Fix pipeline instance expand - fixes #10778

diff --git a/apps/workbench/app/assets/javascripts/work_unit_component.js b/apps/workbench/app/assets/javascripts/work_unit_component.js
index 25f1ddc..e63aecd 100644
--- a/apps/workbench/app/assets/javascripts/work_unit_component.js
+++ b/apps/workbench/app/assets/javascripts/work_unit_component.js
@@ -1,18 +1,16 @@
 $(document).
   on('click', '.component-detail-panel', function(event) {
     var href = $($(event.target).attr('href'));
-    if ($(href).attr("class").split(' ').indexOf("in") == -1) {
-      return;   // collapsed; nothing more to do
+    if ($(href).hasClass("in")) {
+      var content_div = href.find('.work-unit-component-detail-body');
+      content_div.html('<div class="spinner spinner-32px col-sm-1"></div>');
+      var content_url = href.attr('content-url');
+      var action_data = href.attr('action-data');
+      $.ajax(content_url, {dataType: 'html', type: 'POST', data: {action_data: action_data}}).
+        done(function(data, status, jqxhr) {
+          content_div.html(data);
+        }).fail(function(jqxhr, status, error) {
+          content_div.html(error);
+        });
     }
-
-    var content_div = href.find('.work-unit-component-detail-body');
-    content_div.html('<div class="spinner spinner-32px col-sm-1"></div>');
-    var content_url = href.attr('content-url');
-    var action_data = href.attr('action-data');
-    $.ajax(content_url, {dataType: 'html', type: 'POST', data: {action_data: action_data}}).
-      done(function(data, status, jqxhr) {
-        content_div.html(data);
-      }).fail(function(jqxhr, status, error) {
-        content_div.html(error);
-      });
   });

commit 8dc951d7f9a21a2429c38cbb3e119bb382618b95
Author: Tom Morris <tfmorris at curoverse.com>
Date:   Thu Dec 22 13:48:00 2016 -0500

    Switch to 2 space indent - no functional changes

diff --git a/apps/workbench/app/assets/javascripts/work_unit_component.js b/apps/workbench/app/assets/javascripts/work_unit_component.js
index baff0e8..25f1ddc 100644
--- a/apps/workbench/app/assets/javascripts/work_unit_component.js
+++ b/apps/workbench/app/assets/javascripts/work_unit_component.js
@@ -1,18 +1,18 @@
 $(document).
-    on('click', '.component-detail-panel', function(event) {
-      var href = $($(event.target).attr('href'));
-      if ($(href).attr("class").split(' ').indexOf("in") == -1) {
-        return;   // collapsed; nothing more to do
-      }
+  on('click', '.component-detail-panel', function(event) {
+    var href = $($(event.target).attr('href'));
+    if ($(href).attr("class").split(' ').indexOf("in") == -1) {
+      return;   // collapsed; nothing more to do
+    }
 
-      var content_div = href.find('.work-unit-component-detail-body');
-      content_div.html('<div class="spinner spinner-32px col-sm-1"></div>');
-      var content_url = href.attr('content-url');
-      var action_data = href.attr('action-data');
-      $.ajax(content_url, {dataType: 'html', type: 'POST', data: {action_data: action_data}}).
-          done(function(data, status, jqxhr) {
-              content_div.html(data);
-          }).fail(function(jqxhr, status, error) {
-              content_div.html(error);
-          });
+    var content_div = href.find('.work-unit-component-detail-body');
+    content_div.html('<div class="spinner spinner-32px col-sm-1"></div>');
+    var content_url = href.attr('content-url');
+    var action_data = href.attr('action-data');
+    $.ajax(content_url, {dataType: 'html', type: 'POST', data: {action_data: action_data}}).
+      done(function(data, status, jqxhr) {
+        content_div.html(data);
+      }).fail(function(jqxhr, status, error) {
+        content_div.html(error);
       });
+  });

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list