mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Add select all/none checkbox to $:/Import
Prompted by this discussion: https://groups.google.com/d/topic/tiddlywiki/MYBWCxOc_gM/discussion
This commit is contained in:
parent
eba1c3c160
commit
3197f9a639
@ -1,20 +1,32 @@
|
|||||||
title: $:/core/ui/ImportListing
|
title: $:/core/ui/ImportListing
|
||||||
|
|
||||||
\define lingo-base() $:/language/Import/
|
\define lingo-base() $:/language/Import/
|
||||||
|
|
||||||
\define messageField()
|
\define messageField()
|
||||||
message-$(payloadTiddler)$
|
message-$(payloadTiddler)$
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define selectionField()
|
\define selectionField()
|
||||||
selection-$(payloadTiddler)$
|
selection-$(payloadTiddler)$
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define previewPopupState()
|
\define previewPopupState()
|
||||||
$(currentTiddler)$!!popup-$(payloadTiddler)$
|
$(currentTiddler)$!!popup-$(payloadTiddler)$
|
||||||
\end
|
\end
|
||||||
|
|
||||||
|
\define select-all-actions()
|
||||||
|
<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
|
||||||
|
<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>
|
||||||
|
</$list>
|
||||||
|
\end
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
|
<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<<select-all-actions>>>
|
||||||
<<lingo Listing/Select/Caption>>
|
<<lingo Listing/Select/Caption>>
|
||||||
|
</$checkbox>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<<lingo Listing/Title/Caption>>
|
<<lingo Listing/Title/Caption>>
|
||||||
|
Loading…
Reference in New Issue
Block a user