You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/10/27 17:14:33 UTC
incubator-ponymail git commit: Ensure mails with no subjects can be
seen - fixes #182
Repository: incubator-ponymail
Updated Branches:
refs/heads/master d22f74422 -> e236e7d03
Ensure mails with no subjects can be seen - fixes #182
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/e236e7d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/e236e7d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/e236e7d0
Branch: refs/heads/master
Commit: e236e7d03a42717d768d23b929396b5ea8f40485
Parents: d22f744
Author: Sebb <se...@apache.org>
Authored: Thu Oct 27 18:14:20 2016 +0100
Committer: Sebb <se...@apache.org>
Committed: Thu Oct 27 18:14:20 2016 +0100
----------------------------------------------------------------------
site/js/dev/ponymail_listview_threaded.js | 4 ++++
site/js/dev/ponymail_listview_tree.js | 4 ++++
site/js/ponymail.js | 8 ++++++++
3 files changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e236e7d0/site/js/dev/ponymail_listview_threaded.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_listview_threaded.js b/site/js/dev/ponymail_listview_threaded.js
index 08a1b23..8324514 100644
--- a/site/js/dev/ponymail_listview_threaded.js
+++ b/site/js/dev/ponymail_listview_threaded.js
@@ -83,6 +83,10 @@ function loadList_threaded(mjson, limit, start, deep) {
}
// Get the email
var eml = findEml(json[i].tid)
+ // allow for empty subject
+ if (eml && eml.subject.length == 0) {
+ eml.subject = '(no subject)'
+ }
// truncate subject (do we need this?)
if (eml && eml.subject.length > 90) {
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e236e7d0/site/js/dev/ponymail_listview_tree.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_listview_tree.js b/site/js/dev/ponymail_listview_tree.js
index 01e8279..b1a0786 100644
--- a/site/js/dev/ponymail_listview_tree.js
+++ b/site/js/dev/ponymail_listview_tree.js
@@ -66,6 +66,10 @@ function loadList_treeview(mjson, limit, start, deep) {
break
}
var eml = findEml(json[i].tid)
+ // allow for empty subject
+ if (eml && eml.subject.length == 0) {
+ eml.subject = '(no subject)'
+ }
if (eml && eml.subject.length > 90) {
eml.subject = eml.subject.substr(0, 90) + "..."
}
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/e236e7d0/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index 7368645..00c9cc9 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -2664,6 +2664,10 @@ function loadList_threaded(mjson, limit, start, deep) {
}
// Get the email
var eml = findEml(json[i].tid)
+ // allow for empty subject
+ if (eml && eml.subject.length == 0) {
+ eml.subject = '(no subject)'
+ }
// truncate subject (do we need this?)
if (eml && eml.subject.length > 90) {
@@ -2930,6 +2934,10 @@ function loadList_treeview(mjson, limit, start, deep) {
break
}
var eml = findEml(json[i].tid)
+ // allow for empty subject
+ if (eml && eml.subject.length == 0) {
+ eml.subject = '(no subject)'
+ }
if (eml && eml.subject.length > 90) {
eml.subject = eml.subject.substr(0, 90) + "..."
}