4024: Fix "compare pipelines" button.
[arvados.git] / apps / workbench / app / assets / javascripts / pipeline_instances.js
index 761477e4653629851edfe58837c2c3db0cc233e1..fa9d6ae5a4d4ada1200d033b54727370675957f7 100644 (file)
@@ -120,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);