site/public/semantic/javascript/semantic.js
function() {
            var
              message      = $messageInput.val(),
              loggedInUser = $module.data('user')
            ;
            if(loggedInUser !== undefined && !module.utils.emptyString(message)) {
              module.message.send(message);
              // display immediately
              module.message.display({
                user: loggedInUser,
                text: message
              });
              module.message.scroll.move();
              $messageInput
                .val('')
              ;

            }
          }
function() {
            var
              message      = $messageInput.val(),
              loggedInUser = $module.data('user')
            ;
            if(loggedInUser !== undefined && !module.utils.emptyString(message)) {
              module.message.send(message);
              // display immediately
              module.message.display({
                user: loggedInUser,
                text: message
              });
              module.message.scroll.move();
              $messageInput
                .val('')
              ;

            }
          }
function ( ) { var message = $messageInput . val ( ) , loggedInUser = $module . data ( 'user' ) ; if ( loggedInUser !== undefined && ! module . utils . emptyString ( message ) ) { module . message . send ( message ) ; // display immediately module . message . display ( { user : loggedInUser , text : message } ) ; module . message . scroll . move ( ) ; $messageInput . val ( '' ) ; } }
handles message form submit
handles message form submit