From 72679d2041f181e1e137006b758280bb49f966b9 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 18 Nov 2018 21:58:03 +0100 Subject: [PATCH] Fix bad characters in the TagManager (#3549) now the tag manager needs some fixes for breaking titles, too - the `<<__variable__>>` syntax needs to be used - the `tag-pills` don't use the tag-pill macro, but `{{||$:/core/ui/TagTemplate}}` directly - some already sufficiently qualified states in the `iconEditor` macro are reduced to not use the `qualify` macro --- core/ui/TagManager.tid | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/core/ui/TagManager.tid b/core/ui/TagManager.tid index 8c0bfb6abc..f81b687ede 100644 --- a/core/ui/TagManager.tid +++ b/core/ui/TagManager.tid @@ -13,10 +13,10 @@ caption: {{$:/language/TagManager/Caption}} \end \define iconEditor(title)
-<$button popupTitle=<> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}} -<$reveal stateTitle=<> type="popup" position="belowleft" text="" default=""> +<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}} +<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default="">
-<$linkcatcher to="$title$!!icon"> +<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<>/>"""> <>
<> @@ -25,17 +25,14 @@ caption: {{$:/language/TagManager/Caption}}
\end -\define qualifyTitle(title) -$title$$(currentTiddler)$ -\end \define toggleButton(state) -<$reveal stateTitle="$state$" type="match" text="closed" default="closed"> -<$button setTitle="$state$" setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> +<$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed"> +<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> {{$:/core/images/info-button}} -<$reveal stateTitle="$state$" type="match" text="open" default="closed"> -<$button setTitle="$state$" setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> +<$reveal stateTitle=<<__state__>> type="match" text="open" default="closed"> +<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> {{$:/core/images/info-button}} @@ -52,19 +49,19 @@ $title$$(currentTiddler)$ <$list filter="[tags[]!is[system]sort[title]]"> <$edit-text field="color" tag="input" type="color"/> -<$macrocall $name="tag" tag=<>/> +{{||$:/core/ui/TagTemplate}} <$count filter="[all[current]tagging[]]"/> <$macrocall $name="iconEditor" title={{!!title}}/> -<$macrocall $name="toggleButton" state=<> /> +<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix] }}} /> -<$reveal stateTitle=<> type="match" text="open" default=""> +<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix] }}} type="match" text="open" default="">
<><$edit-text field="color" tag="input" type="text" size="9"/>