Preserve disabled state in the middle of sending message (#1937)

* Preserve disabled state in send-message field on click

Also: get consistent in treatment of 'disabled' property.

* Add some comments explaining how audio recording dismissal works
This commit is contained in:
Scott Nonnenberg 2018-01-04 16:51:00 -08:00 committed by GitHub
parent 98d3a5e607
commit e999473f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 10 deletions

View file

@ -28,6 +28,9 @@
this.$('.time').text(minutes + ':' + seconds);
},
close: function() {
// Note: the 'close' event can be triggered by InboxView, when the user clicks
// anywhere outside the recording pane.
if (this.recorder.isRecording()) {
this.recorder.cancelRecording();
}