logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 0930ce5560749f5ede3aa70aef4130ad1a9dc6ba
parent: 7f0a865b05628fa82ac692ec9a21c418e30dac14
Author: Rachel H <rainyday@users.noreply.github.com>
Date:   Wed, 12 Apr 2017 09:21:07 -0700

Focus textarea when text is inserted (#1320)

Place space after uploaded filenames

Diffstat:

M.gitignore4++++
Mapp/assets/javascripts/components/reducers/compose.jsx3++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore @@ -28,3 +28,7 @@ neo4j/ # Ignore Capistrano customizations config/deploy/* + + +# Ignore IDE files +.vscode/ diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx @@ -76,7 +76,8 @@ function appendMedia(state, media) { map.update('media_attachments', list => list.push(media)); map.set('is_uploading', false); map.set('resetFileKey', Math.floor((Math.random() * 0x10000))); - map.update('text', oldText => `${oldText} ${media.get('text_url')}`.trim()); + map.set('focusDate', new Date()); + map.update('text', oldText => `${oldText.trim()} ${media.get('text_url')}`.trim() + ' '); }); };