ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [5/6] incubator-ponymail git commit: prep listview for displaying email inline
Date Mon, 05 Sep 2016 07:01:27 GMT
prep listview for displaying email inline


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

Branch: refs/heads/coffee-and-cake
Commit: 59a16d6104bafcdfb2561cb8dd47c4f2cfbe2b6f
Parents: cbf6aa4
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Mon Sep 5 09:01:00 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Mon Sep 5 09:01:00 2016 +0200

----------------------------------------------------------------------
 site/js/coffee/listview_basic.coffee | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/59a16d61/site/js/coffee/listview_basic.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/listview_basic.coffee b/site/js/coffee/listview_basic.coffee
index 8a27d80..adce8ee 100644
--- a/site/js/coffee/listview_basic.coffee
+++ b/site/js/coffee/listview_basic.coffee
@@ -210,7 +210,7 @@ class BasicListView
                 
             ### Subject, PLUS a bit of the body with a break before ###
             subject = new HTML('div', {}, [
-                new HTML('a', { style: {fontWeight: readStyle}, href: "thread.html/#{thread.tid}",
onclick: "readEmail(this.parentNode.parentNode); return false;"}, original.subject),
+                new HTML('a', { style: {fontWeight: readStyle}, href: "thread.html/#{thread.tid}",
onclick: "readEmail(this.parentNode.parentNode.parentNode); return false;"}, original.subject),
                 new HTML('br'),
                 new HTML('span', {class: "listview_item_body"}, thread.body)
             ])
@@ -233,7 +233,9 @@ class BasicListView
             
             
             ### Finally, pull it all together in a div and add that to the listview ###
-            item = new HTML('div', {id: uid, data: thread.tid, class: "listview_item"}, [avatar,
sender, subject, date, stats])
+            item = new HTML('div', {id: uid, data: thread.tid, class: "listview_item"},
+                            new HTML('div', {class:"listview_summary"}, [avatar, sender,
subject, date, stats])
+                            )
             return item
         
     ### swipe: go to next or previous page of emails, depending on mouse wheel direction
###


Mime
View raw message