aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-12-11 17:00:58 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-12-11 17:00:58 -0500
commit9d8845fb64c08729b446f12206aa5ed215228f4e (patch)
tree1506f2318c815449b283a36bcdd06d55965d929e /src/client/views/DocumentDecorations.tsx
parentad079a088ae9262a4a40a2f0d2a2c5d948140492 (diff)
cleaned up toottipmenu and richtextschema a bit. fixed some problems with text styles. fixed warnings.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index dd3b740fb..f366a3677 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -85,14 +85,14 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
if (this._accumulatedTitle.startsWith("#") || this._accumulatedTitle.startsWith("=")) {
this._titleControlString = this._accumulatedTitle;
} else if (this._titleControlString.startsWith("#")) {
- let selectionTitleFieldKey = this._titleControlString.substring(1);
+ const selectionTitleFieldKey = this._titleControlString.substring(1);
selectionTitleFieldKey === "title" && (SelectionManager.SelectedDocuments()[0].props.Document.customTitle = !this._accumulatedTitle.startsWith("-"));
selectionTitleFieldKey && SelectionManager.SelectedDocuments().forEach(d =>
Doc.SetInPlace(d.props.Document, selectionTitleFieldKey, typeof d.props.Document[selectionTitleFieldKey] === "number" ? +this._accumulatedTitle : this._accumulatedTitle, true)
);
}
}
- }))
+ }));
@action titleEntered = (e: any) => {
const key = e.keyCode || e.which;