Skip to content

fix #2084 #2365

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 1 commit into from
Oct 20, 2017
Merged
Changes from all commits
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
26 changes: 24 additions & 2 deletions qiita_pet/templates/study_ajax/artifact_file_selector.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{% from qiita_core.qiita_settings import qiita_config %}
<link rel="stylesheet" href="{% raw qiita_config.portal_dir %}/static/vendor/css/chosen.css" type="text/css">
<style>
.tooltip {
background-color: #000;
}
.tooltip .tooltip-inner {
background-color: #000;
color: #FFF;
max-width: none;
}
</style>

<script type="text/javascript>">
/**
*
Expand Down Expand Up @@ -125,6 +136,13 @@
}

$(document).ready(function () {
// tooltip configuration
$(".filenames-tooltip").tooltip({
html: "true",
placement: "auto",
delay: {"show": 0, "hide": 100}
});

//make the files draggable
$(".connectedSortable").sortable({
connectWith: ".connectedSortable"
Expand Down Expand Up @@ -214,7 +232,9 @@
<ul id="remaining-list" class="connectedSortable">
{% for fp in remaining %}
<li id="{{fp}}" style="text-overflow:ellipsis;" title="{{fp}}">
<a class="tooltip-list" href="#" data-toggle="tooltip" data-placement="top" title="{{fp}}">{{fp}}</a>
<div class="filenames-tooltip" title="{{fp}}" container="body">
<a class="tooltip-list" href="#" data-toggle="tooltip">{{fp}}</a>
</div>
</li>
{% end %}
</ul>
Expand All @@ -226,7 +246,9 @@
<ul id="{{ft}}-list" data-file-required="{{req}}" data-file-count="{{num_prefixes}}" data-correct="true" class="connectedSortable checkable">
{% for fp in files %}
<li id="{{fp}}">
<a class="tooltip-list" href="#" data-toggle="tooltip" data-placement="top" title="{{fp}}">{{fp}}</a>
<div class="filenames-tooltip" title="{{fp}}" container="body">
<a class="tooltip-list" href="#" data-toggle="tooltip">{{fp}}</a>
</div>
</li>
{% end %}
</ul>
Expand Down