mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 08:21:37 +08:00
Merge pull request #2066 from aignatov-bio/ai-sci-3878-fix-missing-expand-all-steps-button
Fix missing expand all button [SCI-3878]
This commit is contained in:
commit
c652bb0d44
2 changed files with 5 additions and 4 deletions
|
|
@ -267,7 +267,10 @@
|
|||
if (show) {
|
||||
$("[data-action='new-step']:first").show();
|
||||
$("[data-action='edit-step']").show();
|
||||
if ($('#steps .step').length > 0) $("[data-action='new-step']:last").show();
|
||||
if ($('#steps .step').length > 0) {
|
||||
$("[data-action='new-step']:last").show();
|
||||
$(".expand-all-steps").show();
|
||||
}
|
||||
} else {
|
||||
$("[data-action='new-step']").hide();
|
||||
$("[data-action='edit-step']").hide();
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@
|
|||
<span class="hidden-xs"><%=t "protocols.steps.new_step" %></span>
|
||||
</a>
|
||||
</div>
|
||||
<% unless @protocol.steps.empty? %>
|
||||
<div class="pull-right" style="margin: 0 15px 20px 0;">
|
||||
<div class="pull-right expand-all-steps" style="margin: 0 15px 20px 0; display: <%= 'none' if @protocol.steps.empty? %>">
|
||||
<a class="btn btn-default" data-action="collapse-steps">
|
||||
<span class="fas fa-caret-square-up"></span>
|
||||
<span class="hidden-xs"><%= t("protocols.steps.collapse_label") %></a></span>
|
||||
|
|
@ -19,7 +18,6 @@
|
|||
<span class="fas fa-caret-square-down"></span>
|
||||
<span class="hidden-xs"><%= t("protocols.steps.expand_label") %></a></span>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div id="steps">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue