Sha256: 2e27f004cc8076e58bb56b7b001e2d4a57d4be7b287ef05bac6c8cc3c9ed41d1

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

var JsChat = {};

document.observe('dom:loaded', function() {
  JsChat.user = new User();

  if ($('post_message')) {
    var chatController = new JsChat.ChatController();
  }

  if ($('sign-on')) {
    if (JsChat.user.name) {
      $('name').value = JsChat.user.name;
    }

    if ($('room') && window.location.hash) {
      $('room').value = window.location.hash;
    }
 
    var signOnController = new JsChat.SignOnController();
  }
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jschat-0.3.7 lib/jschat/http/public/javascripts/init.js
jschat-0.3.6 lib/jschat/http/public/javascripts/init.js
jschat-0.3.5 lib/jschat/http/public/javascripts/init.js
jschat-0.3.3 lib/jschat/http/public/javascripts/init.js
jschat-0.3.2 lib/jschat/http/public/javascripts/init.js
jschat-0.3.1 lib/jschat/http/public/javascripts/init.js
jschat-0.3.0 lib/jschat/http/public/javascripts/init.js