<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -133,6 +133,10 @@ h2{
   width: 220px;
 }
 
+.invite_modal input{
+  width: 180px;
+}
+
 .modal span{
   display: block;
   line-height: 20px;</diff>
      <filename>client/example/paste_chat/css/screen.css</filename>
    </modified>
    <modified>
      <diff>@@ -57,6 +57,16 @@
     &lt;/div&gt;
   &lt;/script&gt;
 
+  &lt;script type=&quot;text/html&quot; id=&quot;invite_modal&quot;&gt;
+    &lt;div class=&quot;modal invite_modal&quot;&gt;
+      &lt;form&gt;
+        &lt;label for=&quot;url&quot;&gt;Copy &amp;amp; Paste:&lt;/label&gt;
+        &lt;input type=&quot;text&quot; id=&quot;url&quot;&gt;
+        &lt;button&gt;Close&lt;/button&gt;
+      &lt;/form&gt;
+    &lt;/div&gt;
+  &lt;/script&gt;
+
   &lt;script type=&quot;text/html&quot; id=&quot;error_modal&quot;&gt;
     &lt;div class=&quot;modal error_modal&quot;&gt;
       &lt;span class=&quot;error&quot;&gt;&lt;strong&gt;Error:&lt;/strong&gt; &lt;%= error %&gt;&lt;/span&gt;
@@ -87,7 +97,7 @@
         &lt;h2&gt;Attending&lt;/h2&gt;
         &lt;ul&gt;
         &lt;/ul&gt;
-        &lt;p&gt;&lt;a href=&quot;#invite&quot;&gt;Invite People&lt;/a&gt; &lt;a href=&quot;#invite&quot;&gt;Get your own Room!&lt;/a&gt;&lt;/p&gt;
+        &lt;p&gt;&lt;a rel=&quot;invite&quot; href=&quot;#invite&quot;&gt;Invite People&lt;/a&gt; &lt;a href=&quot;./&quot; target=&quot;_new&quot;&gt;Get your own Room!&lt;/a&gt;&lt;/p&gt;
       &lt;/div&gt;
     &lt;/div&gt;
   &lt;/script&gt;</diff>
      <filename>client/example/paste_chat/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,7 @@ ChatUi.prototype.init = function(context) {
   this.$messageButton = $('.message button', this.$chat);
   this.$topic = $('.left .header h1', this.$chat);
   this.$editTopic = $('.left .header a', this.$chat);
+  this.$invite = $('.right a[rel=invite]', this.$chat);
 };
 
 ChatUi.prototype.modal = function(options) {
@@ -143,6 +144,22 @@ ChatUi.prototype.bindEvents = function() {
      return false;
     }
   });
+
+  this.$invite.click(function(e) {
+    var modal = self.modal({
+      type: 'invite'
+    });
+
+    var $modal = modal.$element, overlay = modal.overlay;
+
+    $('input', $modal).val(window.location.href);
+    $('form', $modal).submit(function() {
+      overlay.close();
+      return false;
+    });
+
+    return false;
+  });
 };
 
 ChatUi.prototype.log = function($element) {</diff>
      <filename>client/example/paste_chat/js/lib/ui/chat_ui.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1db1c947fe7867b95e33cc5275b2ecfcc6b17c01</id>
    </parent>
  </parents>
  <author>
    <name>Felix Geisend&#246;rfer</name>
    <email>felix@debuggable.com</email>
  </author>
  <url>http://github.com/felixge/node-channel/commit/94c86290143fbfe08017b02faa44538b29b4923e</url>
  <id>94c86290143fbfe08017b02faa44538b29b4923e</id>
  <committed-date>2009-11-07T05:51:46-08:00</committed-date>
  <authored-date>2009-11-07T05:51:46-08:00</authored-date>
  <message>Invite modal working, 1.0 complete</message>
  <tree>4b100d9446fdb650c9fde3b8b95eca8ea97da201</tree>
  <committer>
    <name>Felix Geisend&#246;rfer</name>
    <email>felix@debuggable.com</email>
  </committer>
</commit>
