Skip to content
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

fix progress bar, toggle buttons #1925

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions indigo_app/static/javascript/indigo/views/document_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@
},

toggleShowXMLEditor: function(e) {
var show = !$(e.currentTarget).hasClass('active');
var show = e.currentTarget.classList.toggle('active');
this.$el.find('.document-content-view').toggleClass('show-xml-editor', show);
this.$el.find('.document-content-view .annotations-container').toggleClass('hide-annotations', show);
if (show) {
Expand All @@ -636,7 +636,7 @@
},

toggleShowStructure: function(e) {
var show = !$(e.currentTarget).hasClass('active');
var show = e.currentTarget.classList.toggle('active');
this.$el.find('#document-sheet la-akoma-ntoso').toggleClass('show-structure', show);
},

Expand Down
4 changes: 2 additions & 2 deletions indigo_app/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{% block body-attributes %}data-backbone-view="{% block backbone-view %}{{ js_view }}{% endblock %}"{% endblock %}

{% block page-content %}
<div id="progress-bar" style="display: none">
<div class="progress-bar progress-bar-striped progress-bar-info progress-bar-animated" role="progressbar" style="width: 100%; height: 5px;"></div>
<div id="progress-bar" class="progress" style="display: none">
<div class="progress-bar progress-bar-striped bg-primary progress-bar-animated" role="progressbar" style="width: 100%; height: 5px;"></div>
</div>
{% include "indigo_app/_offline.html" %}
{% if MAINTENANCE_MODE %}
Expand Down
Loading