Skip to content

Commit

Permalink
Update class settings in edit template to match view template
Browse files Browse the repository at this point in the history
@pmario this adds the tc-tagged- classes to the edit template, do you think that's useful?
  • Loading branch information
Jermolene committed Dec 17, 2019
1 parent 015306d commit 144ec28
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/ui/EditTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ title: $:/core/ui/EditTemplate
<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/>
<$action-sendmessage $message="tm-save-tiddler"/>
\end
\define frame-classes()
tc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
\end
<div class=<<frame-classes>> data-tiddler-title=<<currentTiddler>>>
<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}>
<$fieldmangler>
<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify "$:/temp/NewTagName">> newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">>>
<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler">
Expand Down

0 comments on commit 144ec28

Please sign in to comment.