Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

touch ups

  • Loading branch information...
commit 1b1a412cf430294904b9a5be4293ea381523664e 1 parent da23265
@boazsender boazsender authored
View
5 www/app/modules/email.js
@@ -63,9 +63,12 @@ function(epp, Backbone) {
app.trigger(this.clickEvent || 'showbody', this.model);
},
"click .unread-msg": function( e ){
- e.stopPropagation();
Email.collections.unreadEmails.remove( e.target.dataset.emailId )
Email.collections.emails.getByCid( e.target.dataset.emailId ).set({ read: 1 });
+ var readmail = Email.collections.senders.get( e.target.dataset.fromemail ).get('unread').getByCid( e.target.dataset.emailId );
+ Email.collections.senders.get( e.target.dataset.fromemail ).get('unread').remove( e.target.dataset.emailId );
+ Email.collections.senders.get( e.target.dataset.fromemail ).get('read').add( readmail );
+
$(e.target).removeClass('unread-msg');
app.trigger(this.clickEvent || 'showbody', this.model);
}
View
2  www/app/templates/email/sidebaritem-sender.html
@@ -1,4 +1,4 @@
-<li class="btn">
+<li class="btn<%= model.get('unread').length ? ' unread-msgs' : '' %>">
<b><%= model.get('name') %></b>
<span class="select"><input type="checkbox"></span>
<span class="meta right">
View
2  www/app/templates/email/sidebaritem.html
@@ -1,4 +1,4 @@
-<span data-email-id="<%= model.cid %>" class="<%= model.get('read') ? 'read-msg' : 'unread-msg' %>">
+<span data-fromemail="<%= model.get('fromemail') %>" data-email-id="<%= model.cid %>" class="<%= model.get('read') ? 'read-msg' : 'unread-msg' %>">
<em><%= new Date( model.get('date') ).toUTCString().substr(4, 7) %></em> &rarr;
"<%= model.get('body').substr(0, 25) %> ..."
</span>
View
5 www/assets/css/epp.css
@@ -112,7 +112,12 @@ input, textarea, select, .uneditable-input {
color: white;
padding: 3px 7px 5px 7px;
font-size: 10px;
+ display: none;
}
+.unread-msgs .count{
+ display: inline;
+}
+
.fine {
font-size: 10px;
}
Please sign in to comment.
Something went wrong with that request. Please try again.