Homec4science

Improve Conpherence column textarea JS behaviors

Authored by epriestley <git@epriestley.com> on Mar 14 2015, 20:00.

Description

Improve Conpherence column textarea JS behaviors

Summary:

  • Don't show a loading state on the whole column while sending chat. We could show some kind of minor loading state, but standard JX.Busy stuff will kick in after a couple seconds anyway.
  • Blank the textarea immediately on submit so you can start typing more text.
  • Don't disable the form while submiting; disabling it prevents you from typing more text.
  • Hide the placeholder while the textarea is focused. If we don't do this, the placeholder reappearing after submitting text feels weird to me.

Test Plan:

  • Sent a lot of text.
  • Real fast.
  • Focused and unfocused the area.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12086

Details

Committed
epriestley <git@epriestley.com>Mar 14 2015, 20:00
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe6f1c34a47ef: Send on enter in Conpherence chat column
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHe5580d038dd1: Improve Conpherence column textarea JS behaviors (authored by epriestley <git@epriestley.com>).Mar 14 2015, 20:00