mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-07 16:00:28 +00:00
set focus after clear button using tm-focus-selector
This commit is contained in:
parent
4eeaba7231
commit
ed558bb2c2
@ -67,7 +67,6 @@ tags: $:/tags/Global
|
|||||||
<$action-setfield $tiddler=<<tf.dv-detailsSearch>>
|
<$action-setfield $tiddler=<<tf.dv-detailsSearch>>
|
||||||
text={{{ [<tf.dv-getDetailsSearchText>!is[blank]then<tf.dv-getDetailsSearchText>] :else[<varname>format:variable[$type$ $name$($params$)]] }}}
|
text={{{ [<tf.dv-getDetailsSearchText>!is[blank]then<tf.dv-getDetailsSearchText>] :else[<varname>format:variable[$type$ $name$($params$)]] }}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure dv-clearStatesButton()
|
\procedure dv-clearStatesButton()
|
||||||
@ -82,6 +81,7 @@ tags: $:/tags/Global
|
|||||||
\procedure dv-clearSearchButton()
|
\procedure dv-clearSearchButton()
|
||||||
<$button class="tc-btn-invisible btn-x" tooltip={{$:/language/Search/Variables/Clear/Search}}>
|
<$button class="tc-btn-invisible btn-x" tooltip={{$:/language/Search/Variables/Clear/Search}}>
|
||||||
<$action-deletetiddler $tiddler=<<tf.dv-searchText>>/>
|
<$action-deletetiddler $tiddler=<<tf.dv-searchText>>/>
|
||||||
|
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input.x-inp"/>
|
||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$button>
|
</$button>
|
||||||
\end
|
\end
|
||||||
@ -89,6 +89,7 @@ tags: $:/tags/Global
|
|||||||
\procedure dv-clearExcludeButton()
|
\procedure dv-clearExcludeButton()
|
||||||
<$button class="tc-btn-invisible btn-yy" tooltip={{$:/language/Search/Variables/Clear/Exclude}}>
|
<$button class="tc-btn-invisible btn-yy" tooltip={{$:/language/Search/Variables/Clear/Exclude}}>
|
||||||
<$action-deletetiddler $tiddler=<<tf.dv-excludeText>>/>
|
<$action-deletetiddler $tiddler=<<tf.dv-excludeText>>/>
|
||||||
|
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input.y-inp"/>
|
||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$button>
|
</$button>
|
||||||
\end
|
\end
|
||||||
@ -224,6 +225,7 @@ tags: $:/tags/Global
|
|||||||
tag=input
|
tag=input
|
||||||
class="txt-input x-inp"
|
class="txt-input x-inp"
|
||||||
placeholder={{$:/language/Search/Variables/Filter/Hint}}
|
placeholder={{$:/language/Search/Variables/Filter/Hint}}
|
||||||
|
focus="yes"
|
||||||
/>
|
/>
|
||||||
<<dv-clearSearchButton>>
|
<<dv-clearSearchButton>>
|
||||||
\end
|
\end
|
||||||
@ -348,20 +350,12 @@ tags: $:/tags/Global
|
|||||||
</div>
|
</div>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
<!-- More Variables Popup -->
|
<!-- More Variables Popup -->
|
||||||
|
|
||||||
<!-- TODO Select the focus to right input -->
|
|
||||||
\procedure dv-lc-actionsXX()
|
|
||||||
<$action-setfield $tiddler="$:/temp/advancedsearch" text=<<navigateTo>>/>
|
|
||||||
<$action-setfield $tiddler="$:/temp/advancedsearch/input" text=<<navigateTo>>/>
|
|
||||||
<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
|
|
||||||
<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
|
|
||||||
\end
|
|
||||||
|
|
||||||
\procedure dv-lc-actions()
|
\procedure dv-lc-actions()
|
||||||
<$action-setfield $tiddler=<<tf.dv-excludeText>> text=<<navigateTo>>/>
|
<$action-setfield $tiddler=<<tf.dv-excludeText>> text=<<navigateTo>>/>
|
||||||
|
<!-- <$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input.y-inp"/> -->
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure dv-addNewVariableFilter-actions()
|
\procedure dv-addNewVariableFilter-actions()
|
||||||
@ -380,7 +374,7 @@ tags: $:/tags/Global
|
|||||||
\procedure dv-addNewVariableFilter()
|
\procedure dv-addNewVariableFilter()
|
||||||
<$button tag="a" actions=<<dv-addNewVariableFilter-actions>> class="tc-tiddlylink">
|
<$button tag="a" actions=<<dv-addNewVariableFilter-actions>> class="tc-tiddlylink">
|
||||||
<em>
|
<em>
|
||||||
<$text text=<<lingo Exclude/Save>>/>
|
<$text text={{$:/language/Search/Variables/Exclude/Save}}/>
|
||||||
</em>
|
</em>
|
||||||
</$button>
|
</$button>
|
||||||
\end
|
\end
|
||||||
|
Loading…
Reference in New Issue
Block a user