From 79d5e9dec2526ac806c022a2663755b9b6d5ebd8 Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Thu, 11 Jan 2024 10:13:06 +0200 Subject: [PATCH] fix progress bar, toggle buttons --- indigo_app/static/javascript/indigo/views/document_editor.js | 4 ++-- indigo_app/templates/main.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indigo_app/static/javascript/indigo/views/document_editor.js b/indigo_app/static/javascript/indigo/views/document_editor.js index bcfe7589c..e0df71d1e 100644 --- a/indigo_app/static/javascript/indigo/views/document_editor.js +++ b/indigo_app/static/javascript/indigo/views/document_editor.js @@ -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) { @@ -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); }, diff --git a/indigo_app/templates/main.html b/indigo_app/templates/main.html index b28543ef2..6c89ab721 100644 --- a/indigo_app/templates/main.html +++ b/indigo_app/templates/main.html @@ -4,8 +4,8 @@ {% block body-attributes %}data-backbone-view="{% block backbone-view %}{{ js_view }}{% endblock %}"{% endblock %} {% block page-content %} -