<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,21 +1,5 @@
 
-//
-// SETTINGS
-//
 
-// BOSH URL of your XMPP server.
-var BOSH_SERVICE = 'http://server.tld/http-bind/'
-
-// MUC compoenent JID
-var MUC_COMPONENT = &quot;conference.server.tld&quot;; 
-
-// Room Name
-var MUC_ROOM = &quot;chatroom&quot;;
-
-// Useful if you need to debug : content will be shown in the &quot;log&quot; div (which has a CSS display:none property)
-var DEBUG = false; 
-
-// END OF SETTINGS
 
 
 var connection = null; //
@@ -161,11 +145,7 @@ $(document).ready(function () {
     connection.rawInput  = rawInput;
     connection.rawOutput = rawOutput;
     
-    $('#post').bind('click', function () {
-        var msg = $('#message_input').get(0).value.replace(/(&lt;([^&gt;]+)&gt;)/ig,&quot;&quot;);
-        connection.send($msg({to: MUC_ROOM + &quot;@&quot; + MUC_COMPONENT, type: &quot;groupchat&quot;, id: connection.getUniqueId}).c(&quot;body&quot;).t(msg).up().c(&quot;nick&quot;, {xmlns: &quot;http://jabber.org/protocol/nick&quot;}).t(NICK).tree());
-         $('#message_input').get(0).value = &quot;&quot;;
-    });
+    $('#post').bind('click', function () { this.onNewMessage() });
     
     $('#connect').bind('click', function () {
         var button = $('#connect').get(0);
@@ -187,4 +167,10 @@ $(document).ready(function () {
             connection.disconnect();
         }
     });
-});
\ No newline at end of file
+});
+
+function onNewMessage() {
+	var msg = $('#message_input').get(0).value.replace(/(&lt;([^&gt;]+)&gt;)/ig,&quot;&quot;);
+	connection.send($msg({to: MUC_ROOM + &quot;@&quot; + MUC_COMPONENT, type: &quot;groupchat&quot;, id: connection.getUniqueId}).c(&quot;body&quot;).t(msg).up().c(&quot;nick&quot;, {xmlns: &quot;http://jabber.org/protocol/nick&quot;}).t(NICK).tree());
+  $('#message_input').get(0).value = &quot;&quot;;
+}</diff>
      <filename>chat.js</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,25 @@
 &lt;head&gt;
   &lt;title&gt;Aristochat&lt;/title&gt;
   &lt;link href=&quot;chat.css&quot; media=&quot;screen&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
+	&lt;script type='text/javascript'&gt;
+		//
+// SETTINGS
+//
+
+// BOSH URL of your XMPP server.
+var BOSH_SERVICE = 'http://localhost:4000/http-bind/'
+
+// MUC compoenent JID
+var MUC_COMPONENT = &quot;conference.localhost&quot;; 
+
+// Room Name
+var MUC_ROOM = &quot;testing&quot;;
+
+// Useful if you need to debug : content will be shown in the &quot;log&quot; div (which has a CSS display:none property)
+var DEBUG = true; 
+
+// END OF SETTINGS
+	&lt;/script&gt;
   &lt;script language='javascript' type='text/javascript' src='jquery-1-1.3.2.js'&gt;&lt;/script&gt;
   &lt;script language='javascript' type='text/javascript' src='strophejs/src/b64.js'&gt;&lt;/script&gt;
   &lt;script language='javascript' type='text/javascript' src='strophejs/src/md5.js'&gt;&lt;/script&gt;</diff>
      <filename>index.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2a7500370d11a09e08e9c23d6788fa12c7a425a4</id>
    </parent>
  </parents>
  <author>
    <name>Pradeep Elankumaran</name>
    <email>pradeep@intridea.com</email>
  </author>
  <url>http://github.com/superfeedr/aristochat/commit/a54223956828583afbd5e866167430f23c5e3945</url>
  <id>a54223956828583afbd5e866167430f23c5e3945</id>
  <committed-date>2009-07-11T17:03:37-07:00</committed-date>
  <authored-date>2009-07-11T17:03:37-07:00</authored-date>
  <message>moved creds into index.html, added a callback for sending a message</message>
  <tree>ecd9b8c1570c9e711bfade69c7b023aa36cc69b9</tree>
  <committer>
    <name>Pradeep Elankumaran</name>
    <email>pradeep@intridea.com</email>
  </committer>
</commit>
