function _replaceFormWithNotification( message ) {
    var transition = new AlphaTransition( _baseElement ).init();
    scroll.scrollIntoView( _formElement, { offset: 100, callback: fadeOutForm } );

    function fadeOutForm() {
      transition.addEventListener( BaseTransition.END_EVENT, fadeInMessage );
      transition.fadeOut();
    }

    function fadeInMessage() {
      _baseElement.style.marginBottom = Math.min( _formElement.offsetHeight, 100 ) + 'px';
      _formElement.style.display = 'none';
      _notification.setTypeAndContent( _notification.SUCCESS, message );
      _notification.show();
      transition.removeEventListener( BaseTransition.END_EVENT, fadeInMessage );
      transition.fadeIn();
    }
  }
/**
   * @param {string} message Success message to display
   *  Replaces form with notification on success.
   */
@param {string} message Success message to display
Replaces form with notification on success.
@param { string } message Success message to display Replaces form with notification on success .
function _replaceFormWithNotification( message ) {
    var transition = new AlphaTransition( _baseElement ).init();
    scroll.scrollIntoView( _formElement, { offset: 100, callback: fadeOutForm } );
    function fadeOutForm() {
      transition.addEventListener( BaseTransition.END_EVENT, fadeInMessage );
      transition.fadeOut();
    }
    function fadeInMessage() {
      _baseElement.style.marginBottom = Math.min( _formElement.offsetHeight, 100 ) + 'px';
      _formElement.style.display = 'none';
      _notification.setTypeAndContent( _notification.SUCCESS, message );
      _notification.show();
      transition.removeEventListener( BaseTransition.END_EVENT, fadeInMessage );
      transition.fadeIn();
    }
  }
function _replaceFormWithNotification ( message ) { var transition = new AlphaTransition ( _baseElement ) . init ( ) ; scroll . scrollIntoView ( _formElement , { offset : 100 , callback : fadeOutForm } ) ; function fadeOutForm ( ) { transition . addEventListener ( BaseTransition . END_EVENT , fadeInMessage ) ; transition . fadeOut ( ) ; } function fadeInMessage ( ) { _baseElement . style . marginBottom = Math . min ( _formElement . offsetHeight , 100 ) + 'px' ; _formElement . style . display = 'none' ; _notification . setTypeAndContent ( _notification . SUCCESS , message ) ; _notification . show ( ) ; transition . removeEventListener ( BaseTransition . END_EVENT , fadeInMessage ) ; transition . fadeIn ( ) ; } }
@param {string} message Success message to display
  Replaces form with notification on success.
@param { string } message Success message to display Replaces form with notification on success .