function onMessageFormSubmit(e) {
  e.preventDefault();
  // Check that the user entered a message and is signed in.
  if (messageInputElement.value && checkSignedInWithMessage()) {
    saveMessage(messageInputElement.value, messageContinousValue.checked).then(function () {
      // Clear message text field and re-enable the SEND button.
      resetMaterialTextfield(messageInputElement);
      hideRegistration();
      showRegistered();
    });
  }
}
// Triggered when the send new message form is submitted.
Triggered when the send new message form is submitted.
Triggered when the send new message form is submitted .
function onMessageFormSubmit(e) {
  e.preventDefault();
  if (messageInputElement.value && checkSignedInWithMessage()) {
    saveMessage(messageInputElement.value, messageContinousValue.checked).then(function () {
      resetMaterialTextfield(messageInputElement);
      hideRegistration();
      showRegistered();
    });
  }
}
function onMessageFormSubmit ( e ) { e . preventDefault ( ) ; if ( messageInputElement . value && checkSignedInWithMessage ( ) ) { saveMessage ( messageInputElement . value , messageContinousValue . checked ) . then ( function ( ) { resetMaterialTextfield ( messageInputElement ) ; hideRegistration ( ) ; showRegistered ( ) ; } ) ; } }
Triggered when the send new message form is submitted.
Triggered when the send new message form is submitted .
// Check that the user entered a message and is signed in. // Clear message text field and re-enable the SEND button.