From 190abcd5b74437e139396693e2daa47ebadecfbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Desmedt?= <34781168+DesignThinkerer@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:40:21 +0100 Subject: [PATCH] change vars and set to let widget --- core/ui/EditorToolbar/link-dropdown.tid | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/ui/EditorToolbar/link-dropdown.tid b/core/ui/EditorToolbar/link-dropdown.tid index 2a3d8a33d88..04493c0420a 100644 --- a/core/ui/EditorToolbar/link-dropdown.tid +++ b/core/ui/EditorToolbar/link-dropdown.tid @@ -14,7 +14,7 @@ title: $:/core/ui/EditorToolbar/link-dropdown \function tf.get-focus-selector() [[$(prefix.bracket)$data-tiddler-title=$(cssEscapedTitle)$$(suffix.bracket)$ .tc-create-wikitext-link input]substitute[]] \procedure cancel-search-actions-inner() -<$set name="userInput" value={{{ [get[text]] }}}><$list filter="[get[text]!match]" emptyMessage="<$action-deletetiddler $filter='[] [] [] []'/>"><$action-setfield $tiddler=<> text=<>/><$action-setfield $tiddler=<> text="yes"/> +<$let userInput={{{ [get[text]] }}}><$list filter="[get[text]!match]" emptyMessage="<$action-deletetiddler $filter='[] [] [] []'/>"><$action-setfield $tiddler=<> text=<>/><$action-setfield $tiddler=<> text="yes"/> \end \procedure cancel-search-actions() <$list filter="[!has[text]] :and[!has[text]]" emptyMessage="<>"><$action-sendmessage $message="tm-edit-text-operation" $param="focus-editor"/> @@ -34,9 +34,9 @@ title: $:/core/ui/EditorToolbar/link-dropdown \whitespace trim ''<>'' -<$vars searchTiddler=`$(config-title)$/search` linkTiddler=`$(config-title)$/link` linktext="" searchListState=<> refreshTitle=<> storeTitle=<>> +<$let searchTiddler=`$(config-title)$/search` linkTiddler=`$(config-title)$/link` linktext="" searchListState=<> refreshTitle=<> storeTitle=<>> -<$vars linkTiddler=<>> +<$let linkTiddler=<>> <$keyboard key="((input-tab-right))" actions=<>> <$keyboard key="((input-tab-left))" actions=<> class="tc-create-wikitext-link"> <$transclude $variable="keyboard-driven-input" tiddler=<> storeTitle=<> @@ -51,28 +51,28 @@ title: $:/core/ui/EditorToolbar/link-dropdown <> <$button class="tc-btn-invisible tc-btn-mini" style="width: auto; display: inline-block; background-colour: inherit;"> -<><$set name="cssEscapedTitle" value={{{ [escapecss[]] }}}><$action-sendmessage $message="tm-focus-selector" $param=<>/> +<><$let cssEscapedTitle={{{ [escapecss[]] }}}><$action-sendmessage $message="tm-focus-selector" $param=<>/> {{$:/core/images/close-button}} - + <$reveal tag="div" state=<> type="nomatch" text=""> <$linkcatcher actions=<> to=<>> -<$vars userInput={{{ [get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] :else[{$:/config/SearchResults/Default}] }}}> +<$let userInput={{{ [get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] :else[{$:/config/SearchResults/Default}] }}}> {{$:/core/ui/SearchResults}} - + - + \end -<$transclude $variable="body" config-title=<>/> +<$transclude $variable="body" config-title=<>/> \ No newline at end of file