Skip to content

Commit

Permalink
Merge pull request #400 from ImagingDataCommons/sprint-13-sp
Browse files Browse the repository at this point in the history
Fix for cohort saving
  • Loading branch information
s-paquette authored Oct 15, 2020
2 parents d53ea76 + f66052a commit 0cc178b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions static/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/image_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -2580,8 +2580,8 @@ require([
$('#save-cohort-btn').on('click', function() {
if(!user_is_auth) {
save_anonymous_selection_data();
location.href=$(this).data('uri');
}
location.href=$(this).data('uri');
});

var cohort_loaded = false;
Expand Down
6 changes: 6 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ <h4 class="modal-title" id="logoutModalLabel">Logout</h4>
</script>
{% endlocalize %}
{% endif %}

<!-- Additional includes brought in by specific child templates -->
{% block modal_includes %}

{% endblock %}

{% block js_file %}
<script src="{% static 'js/libs/require.js' %}"></script>
{% endblock %}
Expand Down
6 changes: 4 additions & 2 deletions templates/idc/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
{% block header %}
<link type="text/css" rel="stylesheet" href="{% static 'css/search.css' %}">
<link type="text/css" rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}">
<!-- <script src="https://d3js.org/d3.v5.min.js"></script> -->
<!-- <script type="text/javascript" src="{% static 'js/libs/d3.v5.min.js' %}"></script> -->
{% endblock %}


Expand Down Expand Up @@ -69,6 +67,10 @@ <h3 class="pull-left" role="heading" aria-level="1">Explore Image Data</h3>

{% include "idc/explore_data_core.html" %}

{% endblock %}

{% block modal_includes %}

{% include "cohorts/save-cohort-modal.html" %}

{% endblock %}
Expand Down

0 comments on commit 0cc178b

Please sign in to comment.