From b252abd4d1c3978aa27c1f3e0f888d4887e3dee2 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 21 Feb 2018 14:44:10 +0000 Subject: [PATCH] TOC: Don't dismiss popup when clicking disclosure triangles This change makes it possible to put the TOC in a popup dropdown. --- core/wiki/macros/toc.tid | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index 3e6a1b300..477e0385e 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -37,12 +37,12 @@ tags: $:/tags/Macro
  • >> <$link> <$reveal type="nomatch" state=<> text="open"> - <$button set=<> setTo="open" class="tc-btn-invisible"> + <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="open"> - <$button set=<> setTo="close" class="tc-btn-invisible"> + <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/down-arrow}} @@ -62,13 +62,13 @@ tags: $:/tags/Macro <$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue="toc-item" value="toc-item-selected">
  • >> <$reveal type="nomatch" state=<> text="open"> - <$button set=<> setTo="open" class="tc-btn-invisible"> + <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/right-arrow}} <> <$reveal type="match" state=<> text="open"> - <$button set=<> setTo="close" class="tc-btn-invisible"> + <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/down-arrow}} <> @@ -104,12 +104,12 @@ tags: $:/tags/Macro <$link> <$list filter="[all[current]tagging[]limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}"> <$reveal type="nomatch" state=<> text="open"> - <$button set=<> setTo="open" class="tc-btn-invisible"> + <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="open"> - <$button set=<> setTo="close" class="tc-btn-invisible"> + <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/down-arrow}} @@ -130,13 +130,13 @@ tags: $:/tags/Macro
  • >> <$list filter="[all[current]tagging[]limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}} <$view field='caption'><$view field='title'/>"> <$reveal type="nomatch" state=<> text="open"> - <$button set=<> setTo="open" class="tc-btn-invisible"> + <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/right-arrow}} <> <$reveal type="match" state=<> text="open"> - <$button set=<> setTo="close" class="tc-btn-invisible"> + <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep"> {{$:/core/images/down-arrow}} <>