ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject incubator-ponymail git commit: alts mgmt: notify user if not logged in
Date Tue, 31 May 2016 10:57:21 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master c5e991b21 -> a8a62f67d


alts mgmt: notify user if not logged in

This fixes #38 (I hope!)


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

Branch: refs/heads/master
Commit: a8a62f67d9ff52110af42c936ba3232447676dff
Parents: c5e991b
Author: humbedooh <humbedooh@apache.org>
Authored: Tue May 31 12:57:04 2016 +0200
Committer: humbedooh <humbedooh@apache.org>
Committed: Tue May 31 12:57:04 2016 +0200

----------------------------------------------------------------------
 site/js/alts.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a8a62f67/site/js/alts.js
----------------------------------------------------------------------
diff --git a/site/js/alts.js b/site/js/alts.js
index bbee4b7..af4ba82 100644
--- a/site/js/alts.js
+++ b/site/js/alts.js
@@ -39,7 +39,11 @@ function renderAlts(json) {
             alt = alt.replace(/<>"'/g, "")
             obj.innerHTML += alt + " - [<a href='javascript:void(0);' onclick='delAlt(\""
+ alt + "\");'>Remove</a>]<br/>"
         }
-    }    
+    }  else {
+        var obj = document.getElementById('alts')
+        obj.innerHTML = "You need to be logged in to manage alternate addresses."
+    }
+    
 }
 
 // onLoad function, fetches the needed JSON and renders the notif list


Mime
View raw message