From: Tara L Andrews Date: Wed, 19 Sep 2012 10:44:39 +0000 (+0200) Subject: do some trivial email address masking X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=897a22fc546e019f812960bc985c2159cdcb4da4;p=scpubgit%2Fstemmaweb.git do some trivial email address masking --- diff --git a/root/js/componentload.js b/root/js/componentload.js index 4c17616..424d7b9 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -88,7 +88,12 @@ function load_textinfo() { // Who the owner is $('#owner_id').empty().append('no one'); if( selectedTextInfo.owner ) { - $('#owner_id').empty().append( selectedTextInfo.owner ); + var owneremail = selectedTextInfo.owner; + var chop = owneremail.indexOf( '@' ); + if( chop > -1 ) { + owneremail = owneremail.substr( 0, chop + 1 ) + '...'; + } + $('#owner_id').empty().append( owneremail ); } // Whether or not it is public $('#not_public').empty();