Skip to content

Fix 2230 #2372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 23, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Function moved into in order to keep order. Some details fixed.
  • Loading branch information
danteese committed Oct 23, 2017
commit 7ef56fa2ff55382fb83d9702d314dfbe36cf1409
23 changes: 10 additions & 13 deletions qiita_pet/templates/sitebase.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@
});
});

$('#qiita_download_accept').click(function(e){
e.preventDefault();
$('.qiita_pet_download_confirm').modal('hide');
window.location.href = '{% raw qiita_config.portal_dir %}/release/download/public';
});

// Based on http://codepen.io/willvincent/pen/LbeKKW
// and https://datatables.net/examples/api/row_details.html

Expand Down Expand Up @@ -555,11 +561,11 @@ <h6>
<a href="#" data-toggle="dropdown" class="dropdown-toggle">Downloads<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a type="button" data-toggle="modal" data-target=".qiita_pet_dwnld_confirm">
<a type="button" data-toggle="modal" data-target=".qiita_pet_download_confirm">
Public BIOM and metadata files
<small>
<br/><b>MD5:</b> {{public_md5}}
<br/><b>Last update:</b>{{public_timestamp}}
<br/><b>Last update:</b> {{public_timestamp}}
</small>
</a>
</li>
Expand All @@ -570,7 +576,7 @@ <h6>
</div>
</div> <!--/.main nav-bar -->

<div class="modal fade qiita_pet_dwnld_confirm" tabindex="-1" role="dialog" aria-labelledby="Confirm download">
<div class="modal fade qiita_pet_download_confirm" tabindex="-1" role="dialog" aria-labelledby="Confirm download">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
Expand All @@ -582,21 +588,12 @@ <h4 class="modal-title">File really big.</h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">No</button>
<button type="button" class="btn btn-success" id="qiita_dwnld_accept">Yes</button>
<button type="button" class="btn btn-success" id="qiita_download_accept">Yes</button>
</div>
<!-- href="{% raw qiita_config.portal_dir %}/release/download/public" -->
</div>
</div>
</div>

<script type="text/javascript">
$('#qiita_dwnld_accept').click(function(e){
e.preventDefault();
$('.qiita_pet_dwnld_confirm').modal('hide');
window.location.href = '{% raw qiita_config.portal_dir %}/release/download/public';
});
</script>


{% if message != '' %}
{% if level not in {'danger', 'success', 'info', 'warning'} %}
Expand Down