Permalink
Browse files

delete more code

  • Loading branch information...
1 parent 68c0fac commit 5b6455545f2c738b1a1b9cd88df872cbdca12e3e @jchris committed Mar 2, 2010
Showing with 3 additions and 9 deletions.
  1. +1 −1 _attachments/index.html
  2. +1 −0 _attachments/script/app.js
  3. +0 −6 evently/chat/_changes/data.js
  4. +1 −2 evently/chat/_changes/mustache.html
View
2 _attachments/index.html
@@ -17,7 +17,7 @@ <h3 id="chandesc">Powered by <a href="http://couchdb.apache.org">Apache CouchDB<
</div>
<div id="activity">
<div id="profile"></div>
- <ul id="chat"></div>
+ <ul id="chat"></ul>
</div>
<br style="clear:both;"/>
</div>
View
1 _attachments/script/app.js
@@ -10,5 +10,6 @@ $.couch.app(function(app) {
$.evently.connect($("#account"), $("#profile"), ["loggedIn", "loggedOut"]);
+ // start the chat widget
$("#chat").evently(app.ddoc.evently.chat, app);
});
View
6 evently/chat/_changes/data.js
@@ -5,13 +5,7 @@ function(row) {
body : $.linkify($.mustache.escape(v.body)),
name : v.author && v.author.nickname || "",
url : v.author && v.author.url || "",
- id : row.id,
created_at : $.prettyDate(v.created_at)
};
- var p = $$("#profile").profile;
- if (p && v.author && v.author.rand && (v.author.rand == p.rand)) {
- // todo _admin owns everything...
- d.owned = true;
- }
return d;
};
View
3 evently/chat/_changes/mustache.html
@@ -1,4 +1,4 @@
-<li data-id="{{id}}">
+<li>
<div class="avatar">
{{#avatar_url}}<img src="{{avatar_url}}"/>{{/avatar_url}}
<br/>
@@ -7,7 +7,6 @@
<div class="body">{{{body}}}</div>
<div class="meta">
<span class="date">{{created_at}}</span>
- {{#owned}}<a class="delete" href="#delete">[x]</a>{{/owned}}
</div>
<div class="clear"></div>
</li>

0 comments on commit 5b64555

Please sign in to comment.