ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [1/2] incubator-ponymail git commit: mark emails as read when...read
Date Tue, 06 Sep 2016 09:41:50 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/coffee-and-cake 3605a82b9 -> abac8d911


mark emails as read when...read


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/a8cc75a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/a8cc75a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/a8cc75a3

Branch: refs/heads/coffee-and-cake
Commit: a8cc75a30a761710f63cf28b133b439165085ebb
Parents: 3605a82
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Tue Sep 6 11:38:54 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Tue Sep 6 11:38:54 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/email_display_basic.coffee | 3 +++
 site/js/ponymail-coffee.js                | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a8cc75a3/site/js/coffee/email_display_basic.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/email_display_basic.coffee b/site/js/coffee/email_display_basic.coffee
index 3542dc5..708c373 100644
--- a/site/js/coffee/email_display_basic.coffee
+++ b/site/js/coffee/email_display_basic.coffee
@@ -82,6 +82,9 @@ class BasicEmailDisplay
         if not ponymail_stored_email[json.mid]
             ponymail_stored_email[json.mid] = json
             
+        ### Mark as read ###
+        markRead(json.mid)
+        
         placeholder = get('placeholder_' + @mid + "_" + json.mid) || get('placeholder_' +
json.mid)
             
         ### Display email headers ###

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a8cc75a3/site/js/ponymail-coffee.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail-coffee.js b/site/js/ponymail-coffee.js
index a522aa8..f9db991 100644
--- a/site/js/ponymail-coffee.js
+++ b/site/js/ponymail-coffee.js
@@ -665,6 +665,9 @@ BasicEmailDisplay = (function() {
     if (!ponymail_stored_email[json.mid]) {
       ponymail_stored_email[json.mid] = json;
     }
+
+    /* Mark as read */
+    markRead(json.mid);
     placeholder = get('placeholder_' + this.mid + "_" + json.mid) || get('placeholder_' +
json.mid);
 
     /* Display email headers */


Mime
View raw message