Skip to content

Commit

Permalink
use attribute substitution instead of a function
Browse files Browse the repository at this point in the history
  • Loading branch information
DesignThinkerer authored Dec 15, 2024
1 parent 190abcd commit 84c8038
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/ui/EditorToolbar/link-dropdown.tid
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ title: $:/core/ui/EditorToolbar/link-dropdown
<$action-deletetiddler $filter="[<dropdown-state>] [<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]"/>
\end

\procedure prefix.bracket() [
\procedure suffix.bracket() ]

\function tf.get-focus-selector() [[$(prefix.bracket)$data-tiddler-title=$(cssEscapedTitle)$$(suffix.bracket)$ .tc-create-wikitext-link input]substitute[]]

\procedure cancel-search-actions-inner()
<$let userInput={{{ [<storeTitle>get[text]] }}}><$list filter="[<searchTiddler>get[text]!match<userInput>]" emptyMessage="<$action-deletetiddler $filter='[<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]'/>"><$action-setfield $tiddler=<<searchTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text="yes"/></$list></$let>
\end
Expand Down Expand Up @@ -51,7 +46,7 @@ title: $:/core/ui/EditorToolbar/link-dropdown
<<external-link>>
&#32;
<$button class="tc-btn-invisible tc-btn-mini" style="width: auto; display: inline-block; background-colour: inherit;">
<<cancel-search-actions>><$let cssEscapedTitle={{{ [<storyTiddler>escapecss[]] }}}><$action-sendmessage $message="tm-focus-selector" $param=<<tf.get-focus-selector>>/></$let>
<<cancel-search-actions>><$action-sendmessage $message="tm-focus-selector" $param=`[data-tiddler-title=${[<storyTiddler>escapecss[]]}$] .tc-create-wikitext-link input`/>
{{$:/core/images/close-button}}
</$button>
</$reveal>
Expand Down

0 comments on commit 84c8038

Please sign in to comment.