Skip to content

Commit

Permalink
Merge pull request #5832 from sbesson/populate_dataset_webclient
Browse files Browse the repository at this point in the history
Populate dataset webclient
  • Loading branch information
joshmoore authored Sep 3, 2018
2 parents 040837b + 572c319 commit 5ae3059
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@
{% elif manager.image %}
var screenQuery = "{% url 'webgateway_object_table_query' 'Screen.plateLinks.child.wells.wellSamples.image' manager.image.id %}";
var plateQuery = "{% url 'webgateway_object_table_query' 'Plate.wells.wellSamples.image' manager.image.id %}";
var projectQuery = "{% url 'webgateway_object_table_query' 'Project.datasetLinks.child.imageLinks.child' manager.image.id %}";
var datasetQuery = "{% url 'webgateway_object_table_query' 'Dataset.imageLinks.child' manager.image.id %}";
var query = "Image-{{ manager.image.id }}";
var query2 = "image-{{ manager.image.id }}";
{% endif %}

var showBulkAnnTooltip = function(data) {
Expand Down Expand Up @@ -387,6 +390,12 @@
if (expanded && $("#bulk_annotations_table").is(":empty")) {
loadBulkAnnotations(screenQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(plateQuery, query, showBulkAnnTooltip);
{% if manager.image %}
loadBulkAnnotations(projectQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(datasetQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(projectQuery, query2, showBulkAnnTooltip);
loadBulkAnnotations(datasetQuery, query2, showBulkAnnTooltip);
{% endif %}
}
});

Expand All @@ -398,6 +407,12 @@
if ($("#bulk_annotations_table").is(":empty")) {
loadBulkAnnotations(screenQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(plateQuery, query, showBulkAnnTooltip);
{% if manager.image %}
loadBulkAnnotations(projectQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(datasetQuery, query, showBulkAnnTooltip);
loadBulkAnnotations(projectQuery, query2, showBulkAnnTooltip);
loadBulkAnnotations(datasetQuery, query2, showBulkAnnTooltip);
{% endif %}
}
}

Expand Down

0 comments on commit 5ae3059

Please sign in to comment.