From 68040bdfe50506b8e2cf4bdb42b97c9172cee9e0 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Tue, 31 Jan 2023 05:34:29 +0100 Subject: [PATCH] set ontology viewer section frame target to top --- app/helpers/ontologies_helper.rb | 2 +- app/views/ontologies/sections/_metadata.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/ontologies_helper.rb b/app/helpers/ontologies_helper.rb index 16c9059322..757ddf068d 100644 --- a/app/helpers/ontologies_helper.rb +++ b/app/helpers/ontologies_helper.rb @@ -390,7 +390,7 @@ def lazy_load_section(section_title, &block) if current_section.eql?(section_title) block.call else - render TurboFrameComponent.new(id: section_title, src: "/ontologies/#{@ontology.acronym}?p=#{section_title}") + render TurboFrameComponent.new(id: section_title, src: "/ontologies/#{@ontology.acronym}?p=#{section_title}", target: '_top') end end diff --git a/app/views/ontologies/sections/_metadata.html.haml b/app/views/ontologies/sections/_metadata.html.haml index 43c7180c64..7a97624b34 100644 --- a/app/views/ontologies/sections/_metadata.html.haml +++ b/app/views/ontologies/sections/_metadata.html.haml @@ -1,4 +1,4 @@ -= turbo_frame_tag 'summary' do += turbo_frame_tag 'summary', target:"_top" do %div.ont-metadata -# Details pane %section.ont-metadata-card.ont-details-card